Update Table set (列名1=值1,列名2=值2……) where 列名 is null
你先select * from Table 看下哪个字段是空的
问题补充:我要的是sql语句,好几千条数据,建议手工插入的就不要回答了! update 表名 set 列1=0 where 列1 is null 不用这么麻烦。你在建,
方法1:修改表属性为可null
方法2:插入的时候用isnull函数转换
isnull(时间字段,getdate());
insert into 表名 values()
多行; insert into 表名 select 值 union , select 值 union ,select 值