union聯集
可以把多個搜尋結果合併在一起
-- 搜尋屬性的數目要是一樣的 否則會出錯,資料型態也都要一樣 例如下面都是VARHCAR
-- 員工名字 Union 客戶名字
select name from employee
union
select client_name from client
union
select branch_name
from branch;
-- 員工的ID跟名字 union 客人ID跟名字
select emp_id as total_id, name
from employee
union
selectclient_id, client_name
from client;