码迷,mamicode.com
首页 > 其他好文 > 详细

OR 连接查询注意

时间:2018-02-02 21:49:28      阅读:145      评论:0      收藏:0      [点我收藏+]

标签:class   post   sele   isnull   null   nbsp   连接查询   查询   log   

用or 查询时, 取得是 每个or中条件的 查询的结果集union。

 

 

select * from categorysecond t
where ISNULL(null);
or
t.csid in (‘1‘,‘2‘,‘3‘,‘4‘)

OR 连接查询注意

标签:class   post   sele   isnull   null   nbsp   连接查询   查询   log   

原文地址:https://www.cnblogs.com/GotoJava/p/8406537.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!