mysql连接器 不支持将null参数传递给连接,所以在加入以前必须得判断是否为null,类似sqlhelper应该修改一下: ) cmd.Parameters.Add(parm); } } } 相关文章: