你能帮我吗,我需要了解两者之间的区别
select * from table where field <> NULL;
Run Code Online (Sandbox Code Playgroud)
和
select * from table where field is not NULL;
Run Code Online (Sandbox Code Playgroud)
看看
SELECT COUNT(*) where (1 = null) -- return 0
SELECT COUNT(*) where (1 <> null) -- return 0
SELECT COUNT(*) where (1 is not null) -- return 1
SELECT COUNT(*) where (null = null) -- return 0
SELECT COUNT(*) where (null <> null) -- return 0
SELECT COUNT(*) where (null is null) -- return 1
SELECT COUNT(*) where (null is …Run Code Online (Sandbox Code Playgroud)