1. 程式人生 > >oracle in 函數

oracle in 函數

函數 emp not in 操作符 rom 員工 復習 acl oracle

IN操作符
select * from scott.emp where empno=7369 or empno=7566 or empno=7788 or empno=9999;
select * from scott.emp where empno IN (7369,7566,7788,9999);
select * from scott.emp where NOT IN (7369,7566,7788,9999); 相反

復習:
找出傭金高於薪金的百分之60的員工。
select * from scott.emp where comm>sal*0.6;

oracle in 函數