开发者

retrieve a user whose one column field is blank

开发者 https://www.devze.com 2023-02-22 17:11 出处:网络
How to retrieve the detail of a student who开发者_Python百科se course column field is blank? How can this be done with a query?SELECT *

How to retrieve the detail of a student who开发者_Python百科se course column field is blank?

How can this be done with a query?


SELECT *
FROM Student
WHERE course = ''
OR course IS NULL


It's not clear from the question whether a null entry qualifies a row as part of the resultset.

Try this:

SELECT * From Student 
WHERE Course = '' 
OR Course IS NULL  --remove/keep this depending on your need for null checking
0

精彩评论

暂无评论...
验证码 换一张
取 消