检查任一列是否为空
Check if either column is null
我想检查 App.Person1 或 App.Person2 列中是否有空值。
这是我的查询:
select App.ID, App.Firstname, App.Lastname, App.Email, App.Person1, App.Person2
from App
where (App.Person1 OR App.Person2 IS NULL)
问题是它不会 return 任何行。
SELECT ID, Firstname, Lastname, Email, Person1, Person2
FROM App
WHERE Person1 IS NULL OR Person2 IS NULL
我想检查 App.Person1 或 App.Person2 列中是否有空值。
这是我的查询:
select App.ID, App.Firstname, App.Lastname, App.Email, App.Person1, App.Person2
from App
where (App.Person1 OR App.Person2 IS NULL)
问题是它不会 return 任何行。
SELECT ID, Firstname, Lastname, Email, Person1, Person2
FROM App
WHERE Person1 IS NULL OR Person2 IS NULL