Re: [SQL ] 要同時搜尋三個表格

作者: cutekid (可愛小孩子)   2017-05-16 15:35:23
select *
from (
select id,category,index from A
union all
select id,category,index from B
union all
select id,category,index from C
) t1
where index = 'xxx'
※ 引述《nature23306 (pART)》之銘言:
: 標題: [SQL ] 要同時搜尋三個表格
: 時間: Tue May 16 14:46:17 2017
:
: 大家好,這幾天試著鑽研JOIN但還是無解....
:
: 快崩潰...OTZ
:
:
:
:
作者: nature23306 (pART)   2017-05-16 16:14:00
大哥 請忽視剛剛丟的水球 我發現新的問題了

Links booklink

Contact Us: admin [ a t ] ucptt.com