
如果存在自查询那么可能,子查询一个where,主查询一个 where. 如果存在分组。那么可能(利用having) 利用case when或者是decode也可以达到类似的效果。
2.
如果单纯的一个查询,想有两个where子句,那么不可能
用AND,或者OR连接.比如:Select a, b, c from [table xyz] where e =1 f =
2 g = 3Select a, b, c from [table xyz] where e = 1 and f = 2 and g = 3必须加入AND、OR,表名要分开写加逗号,OR 用连接select a, b, c from x,y,z where e = 1 and f = 2 and g = 3
如果存在自查询那么可能,子查询一个where,主查询一个 where.如果存在分组。那么可能(利用having)
利用case when或者是decode也可以达到类似的效果。
如果单纯的一个查询,想有两个where子句,那么不可能。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)