摘要:
若字段定义的类型为datetime,插入为''(空),那么会默认值为1900-01-01 00:00:00.000 解决方法查询的时候过滤下cast(nullif('','') as datetime) select cast('' as datetime) , cast(nullif('','') 阅读全文
posted @ 2018-07-05 16:21
hofmann
阅读(3626)
评论(0)
推荐(0)
摘要:
SELECT 字段名= convert(varchar(100), a.name), 表名= convert(varchar(50), d.name ), 类型= CONVERT(varchar(50),b.name), 库名= 'Co... 阅读全文
posted @ 2018-07-05 13:58
hofmann
阅读(420)
评论(0)
推荐(0)