Oracle中any和all

any  

select empno,sal from emp where sal > any(3000,950);

只需要大于(3000,900)中的任意一个即可

all

select empno,sal from emp where sal > all(3000,950);

需要大于(3000,900)中的每一个

猜你喜欢

转载自blog.csdn.net/xutao_ccu/article/details/84953064