A表 欄位1 欄位2 B表 欄位1 欄位3 A表的欄位1=B表的欄位1 SELECT DISTINCT A.欄位2 FROM TABEL1 A ,TABEL2 B WHERE A.欄位1 = B.欄位1 AND A.欄位1='XXX' ...
A表 欄位1 欄位2
B表 欄位1 欄位3
A表的欄位1=B表的欄位1
SELECT DISTINCT A.欄位2 FROM TABEL1 A ,TABEL2 B WHERE A.欄位1 = B.欄位1 AND A.欄位1='XXX'
A表 欄位1 欄位2 B表 欄位1 欄位3 A表的欄位1=B表的欄位1 SELECT DISTINCT A.欄位2 FROM TABEL1 A ,TABEL2 B WHERE A.欄位1 = B.欄位1 AND A.欄位1='XXX' ...
A表 欄位1 欄位2
B表 欄位1 欄位3
A表的欄位1=B表的欄位1
SELECT DISTINCT A.欄位2 FROM TABEL1 A ,TABEL2 B WHERE A.欄位1 = B.欄位1 AND A.欄位1='XXX'