使用mysqlclient查询记录,报Unable to convert MySQL date/time value to System.DateTime

mysql的date/time类型通过ado.net查询得到的是一个字符串,而不是日期类型,需要手动用程序转换,不过你可以设置连接字符串"Allow Zero Datetime=true",得到的就是日期型,不用转换了

posted on 2009-06-24 16:01  Dot-Boy  阅读(317)  评论(0编辑  收藏  举报