-
Notifications
You must be signed in to change notification settings - Fork 22
SQL NULL
L edited this page Apr 30, 2020
·
3 revisions
NULL这个值表示UNKNOWN(未知)
:它不表示“”(空字符串
)
使用IS NULL
、IS NOT NULL
操作符
总数据
select * from Test2 where VERSION is null
结果
select * from Test2 where VERSION is not null
结果
select * from Test2 where VERSION =''
结果
select * from Test2 where VERSION !=''
结果
select * from Test2 where VERSION !=null
select * from Test2 where VERSION =null
查询结果为空