手机
当前位置:查字典教程网 >编程开发 >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用法】相关文章:

SqlServer2005 链接服务器用法

SQL Server 中 ROR XML PATH 用法

sqlserver 中ntext字段的批量替换(updatetext的用法)

sql中varchar和nvarchar的区别与使用方法

mssql @@ERROR 使用

shp2sqlserver 用法简析

sql中translate与replace的区别

SQL中object_id函数的用法

sqlSERVER常用函数及语法笔记

sql中生成查询的模糊匹配字符串

精品推荐
分类导航