zl程序教程

您现在的位置是:首页 >  数据库

当前栏目

判断数据库表字段是否为null值,采用is null

数据库 is 判断 是否 null 采用 表字
2023-09-14 09:11:19 时间

use UserCenter
go

select * from AccountDetails
1、判断一个字段是否为null值,进行查询:
update AccountDetails set ProjectCode ='w88' where ProjectCode is null

2、这一种写法是错误的

update AccountDetails set ProjectCode ='w88' where ProjectCode = null