摘要:
Unable to convert MySQL date/time value to System.DateTime 解决方案这个问题发生在MySQL数据里面有Date类型数据,在C#中查询出来时候时间的类型不一致而导致!网上看了一下,找到有两种解决方案:1、在连接字符串中加入“Allow Zero Datetime=True”; con = new MySqlConnection("server=localhost;database=test;CharSet=gb2312;pooling=false;port=3306;UId=root;Pwd=pwd;Allow Zero Dat 阅读全文
posted @ 2012-06-27 10:07
武胜-阿伟
阅读(6121)
评论(4)
推荐(3)
浙公网安备 33010602011771号