当前位置: 首页 > 专家说 > 太阳能 > 正文

数据库sql server 2008 中ANY关键字的意思

关注热度:83
相关推荐 你可能关注 点击排行 我要评论

【专家解说】:您好,any是这个意思:达式只要与子查询结果集中的某个值满足比较的关系时,就返回true,否则返回false。 带any嵌套查询 select emp.empno,emp.ename,emp.sal from scott.emp where sal>any(select sal from scott.emp where job='manager'); 等价于 select sal from scott.emp where job='manager' 结果为 sal:2975 2850 2450 select emp.empno,emp.ename,emp.sal from scott.emp where sal>2975 or sal>2850 or sal>2450
 
关键词: 关键字 数据库

[ 专家说搜索 ]  [ 加入收藏 ]  [ 告诉好友 ]  [ 打印本文 ]  [ 违规举报 ]  [ 关闭窗口 ]
 
相关专家说推荐
 
0条 [查看全部]  相关评论
 
相关资讯
热门推荐
 
 
网站首页 | 联系我们 | 排名推广 | 广告服务 | 积分换礼 | 网站留言