读书人

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

发布时间: 2012-05-21 18:04:41 作者: rapoo

关于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了。

读书人网 >SQL Server

热点推荐