SQL-修改: 将日期修改为空NULL、修改为空的记录

1、将日期修改为空NULL

  update 表 set 字段=null where 字段=''

  如果设置为‘’,会默认1900-01-01

 

2、修改为空的记录

  update [dbo].[pub_item_contents] set [range]='0' where [range] is null

转载于:https://www.cnblogs.com/michellexiaoqi/p/8296472.html

你可能感兴趣的:(SQL-修改: 将日期修改为空NULL、修改为空的记录)