开发者

retrieve a user whose one column field is blank

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜