在sqlserver数据库中如果时间insert或者update为’ ‘时数据库会自动填写值为’1900-01-01 00:00:00.000’
那已经存在的我们可以这样把这个值去掉
update table set time=null where time= '1900-01-01 00:00:00.000'
在insert或者update空时这个字段就写null就好
在sqlserver数据库中如果时间insert或者update为’ ‘时数据库会自动填写值为’1900-01-01 00:00:00.000’
那已经存在的我们可以这样把这个值去掉
update table set time=null where time= '1900-01-01 00:00:00.000'
在insert或者update空时这个字段就写null就好