討論串[SQL ] [請益]兩個無關table join的語法
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓3(3推 0噓 1→)留言4則,0人參與, 最新作者opeekon時間15年前 (2010/04/06 14:20), 編輯資訊
0
0
0
內容預覽:
抱歉回覆這篇很舊的討論. 我現在的情形跟這個問題很類似. 問題是我現在有兩百多個Table要作union. (每個Table名稱都很固定,比如Table001 Table002 Table003). 有沒有迴圈的寫法呢. 可以敘述一下嗎. --. 發信站: 批踢踢實業坊(ptt.cc). ◆ F

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者sanisan (sanisan)時間16年前 (2009/12/16 21:00), 編輯資訊
0
0
0
內容預覽:
SELECT tA_id as t_id, tA_date as t_date FROM tA. UNION. SELECT tB_id as t_id , tB_date as t_date FROM tB. ORDER BY 2. LIMIT 0,5. 最關鍵的是 ORDER BY 2 <--

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者sanisan (sanisan)時間16年前 (2009/12/16 18:23), 編輯資訊
0
0
0
內容預覽:
請教大家一個table join的問題。. 資料庫是 mysql 5.0 on Linux. 我有兩個table: tA & tB,scheme如下. ------------------------------------------. tA:. tA_id as int. tA_date as
(還有393個字)
首頁
上一頁
1
下一頁
尾頁