筛选时 因为and的优先级高于or 所以需要借助()select * from emp where (DEPTNO=10 or DEPTNO=20 )and sal>2500;

 

posted @ 2023-10-17 16:49  胖豆芽  阅读(7)  评论(0)    收藏  举报