討論串[SQL ] left join(?)
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者bohei (run and fall)時間11年前 (2014/06/24 18:03), 11年前編輯資訊
0
0
1
內容預覽:
select (select d from table2 where c=a) a,. (select d from table2 where c=b) b. from table1. 阿......好爛的方法XD. ..... 不知MSSQL有無支援這種query. --. 發信站: 批踢踢實

推噓1(1推 0噓 1→)留言2則,0人參與, 最新作者cutekid (可愛小孩子)時間11年前 (2014/06/24 15:52), 編輯資訊
0
0
1
內容預覽:
select a,b. from (. select table1.id,table2.d as a -- 將 table1.a 替代成 table2.d. from table1 inner join table2. on table1.a = table2.c. ) as t1. inner j
(還有123個字)
首頁
上一頁
1
下一頁
尾頁