读书人

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

发布时间: 2012-01-02 22:40:04 作者: rapoo

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)

读书人网 >SQL Server

热点推荐