登入會員 重寄密碼 加入會員
晉平日劇筆記
 


BLOG標題說明 
︙☰
回上一頁
資料庫:資料表自身的JOIN 2010-02-03 10:52:11
當資料表有一欄位指自身的ID要如何JOIN
例如:
employee表
id
name
eid

e1.name
from employee as e1,employee as e2
where e1.eid=e2.id

來達成employee.eid能join到employee.name
------------------------------------
歡迎光臨偶像劇場∠(^_^)
回上一頁   240人說讚 讚一個   關聯:   人氣:1764   回覆:0   編輯 關聯 刪除
留 言
暫無留言,歡迎留言.
留言
  • 請勿負面批評網友留言、藝人、長相。
  • 笑臉 笑臉2 YA 爆笑 笑到並軌 羨慕 冷靜 無感 竊喜 臉紅 疑問 冒冷汗 三條線 保密 驚訝 拋媚眼 失落 大哭 迷茫 生氣 敲打指責 睡著 滑稽 親親 慶祝
    貼連結 |