当前位置: 代码迷 >> Sql Server >> 关于sql中的except的使用解决办法
  详细解决方案

关于sql中的except的使用解决办法

热度:67   发布时间:2016-04-27 12:47:41.0
关于sql中的except的使用
(select distinct cno from borrow)
except
(select distinct cno from card)

这么一句运行为什么错。。
消息 156,级别 15,状态 1,第 2 行
在关键字 'except' 附近有语法错误。




------解决方案--------------------
select distinct cno from borrow
except
select distinct cno from card
------解决方案--------------------
把括号去掉就ok了。
  相关解决方案