当前位置:首页 > 数据库 > Oracle

oracle mysql sql serve where in 语句的不同

类似这样的语句在mysql  oracle 是可以执行成功的,

select * from classfirst where (classid ,classname) not in (select classid, classname from classfirst where classid=2 )

但是在sql server 中提示以下错误

消息 4145,级别 15,状态 1,第 1 行
在应使用条件的上下文(在 ‘,‘ 附近)中指定了非布尔类型的表达式。

所以在日常的使用中对于sql  server 还是使用and or 等语句

原文:http://www.cnblogs.com/rongfengliang/p/3706127.html


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!

相关教程推荐

其他课程推荐