zxforben的技术园地

(没有最好,只有更好!)

导航

2010年6月24日 #

mysql c#中出现的时间没办法转换的情况

摘要: 当使用.NET connector 连接MYSQL数据库,检索某些数据的时候,你可能会得到一个错误信息:"Unable to convert MySQL date/time value to System.DateTime"这是因为在日期列中有"0000-00-00"数据值,要修正这个问题,你可以把这些数据设为null,或者在连接字符串中设置"Allow Zero Datetime=True" 。 阅读全文

posted @ 2010-06-24 10:05 zxforben 阅读(193) 评论(0) 推荐(0) 编辑