类似这样的语句在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 等语句

相关文章:

  • 2021-09-19
  • 2022-01-20
  • 2022-12-23
  • 2021-05-21
  • 2021-11-22
  • 2022-12-23
  • 2021-10-01
  • 2021-05-28
猜你喜欢
  • 2022-02-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-15
  • 2021-05-11
  • 2022-01-27
相关资源
相似解决方案