select*from employee minus select*from employee where id='1';
注意事项:
1。两个选择列表必须完全一致
2。可以连续使用集合操作符,这些操作符拥有相同优先级,多个操作符存在时,从左向右执行,如:
SQL>select*from employee minus select*from employee where id='1'unionselect*from employee where id='1'; ID NAME SALARY EMAIL ---------- ---------- ---------- ------------------------------ 1 love 3100 fasda 2 love 4100 killme2008@gmail