手机
当前位置:查字典教程网 >编程开发 >mssql数据库 >sql中all,any,some用法
sql中all,any,some用法
摘要:--All:对所有数据都满足条件,整个条件才成立,例如:5大于所有返回的idselect*from#Awhere5>All(selectid...

--All:对所有数据都满足条件,整个条件才成立,例如:5大于所有返回的id

select *

from #A

where 5>All(select id from #A)

go

--Any:只要有一条数据满足条件,整个条件成立,例如:3大于1,2

select *

from #A

where 3>any(select id from #A)

【sql中all,any,some用法】相关文章:

SQL SERVER的数据类型

sql Set IDENTITY_INSERT的用法

sql数据库不能直接用instr函数

sqlSERVER常用函数及语法笔记

SQL Server 2005 中使用 Try Catch 处理异常

在sp_executesql中使用like字句的方法

C#中Sql DataAdapter的使用

清除SQLServer日志的两种方法

sql中translate与replace的区别

win2008 enterprise R2 x64 中安装SQL server 2008的方法

精品推荐
分类导航