摘要: MySQL使用基于Parameter方式代码,总是提示:“Column '列名' cannot be null”MySQL使用基于Parameter方式代码,总是提示:“Column '列名' cannot be null”解决方法1:直接在连接字符串里面加一个 oldsyntax=true 即可。例如:server=127.0.0.1;user id=root;password=;database=itemdb;oldsyntax=true解决方法2:将语句中的 @ 替换为 ? 例如:StringBuilder strSql=new StringBuilder 阅读全文
posted @ 2012-03-09 14:06 Shark Xu 阅读(3832) 评论(0) 推荐(0) 编辑
为汶川地震死难者哀悼!