
查询二:
select * from t where x=1 or x=2 or x=null -- 说明 in 只是多个 or = 的语法糖衣吧。

查询三:如果要真正的返回null行,可以这样做
select * from t where x in (1,2) or x is null

SQL Server MySQL 中的 in 与 null
标签:
本文系统来源:http://www.cnblogs.com/JiangLe/p/4603978.html
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!