当前位置: 代码迷 >> Sql Server >> 急求個sql語句寫法,该怎么处理
  详细解决方案

急求個sql語句寫法,该怎么处理

热度:344   发布时间:2016-04-24 18:31:31.0
急!求個sql語句寫法
select aa,bb,cc from table1 where aa='x' and (bb='xx' or bb='xxx')
那麼上面語句之外記錄的查詢語句應該怎麼寫?有點亂,看得懂吧,請幫忙!
------解决方案--------------------
select aa,bb,cc from table1 where not(aa='x' and (bb='xx' or bb='xxx'))
select aa,bb,cc from table1 where aa!='x' or bb!='xx' and bb!='xxx'

  相关解决方案