首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > SQL Server >

select出ID不等于23,44,55的数据,该如何解决

2012-01-02 
select出ID不等于23,44,55的数据select出ID不等于23,44,55的数据。我用的方法是select*fromtablewhereID

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)

热点排行