Miscellaneous Notes
2010年11月24日 星期三
NOT LIKE '%string%' OR column IS NULL
如果table的column欄位某一筆record值為Null,且要下SQL call出該欄位不包含關鍵字'string',則SQL如下:
┌────┐
│column│
├────┤
│ Null │
└────┘
select * from table where column not like '%string%' or column is null
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言