日期:2014-05-19  浏览次数:20448 次

select出ID不等于23,44,55的数据
select出ID不等于23,44,55的数据。
我用的方法是
select   *   from   table   where   ID <> 23   AND   ID <> 44   AND   ID <> 55
还有其他的方法吗

------解决方案--------------------
not in
------解决方案--------------------
select * from table where ID not in(23,44,55)