SQL Server中的功能除外 [英] except function in sql server

查看:84
本文介绍了SQL Server中的功能除外的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在SQL Server中使用EXCEPT函数,可以提供任何帮助

How to use EXCEPT function in sql server, can any one help

推荐答案

我一直认为在对CP提出问题之前,MSDN文档是更好的选择. br/>
看看这里,它具有很强的描述性:

http://msdn.microsoft.com/en-us/library/ms188055 (v = sql.105).aspx [
I always think MSDN documentation is better place to before asking a question on CP.

Look here, it is quite descriptive:

http://msdn.microsoft.com/en-us/library/ms188055(v=sql.105).aspx[^]


曾经看过这个
http://www.tutorialspoint.com/sql/sql-except-clause.htm [ ^ ]

祝你好运
hi anand once look at this
http://www.tutorialspoint.com/sql/sql-except-clause.htm[^]

best of luck


请参见以下示例

Please see the below example

select * from tablename1
except
select * from tablename2




注意:使用except

使用UNION,INTERSECT或EXCEPT运算符组合的所有查询在其目标列表中必须具有相同数量的表达式.


如果它是您的解决方案,请标记为答案.

谢谢
灰烬




Note : while using except

All queries combined using a UNION, INTERSECT or EXCEPT operator must have an equal number of expressions in their target lists.


Mark it answer if it is your solution.

Thanks
Ashish


这篇关于SQL Server中的功能除外的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆