sql語句:同一張表兩個相同外鍵查詢

假設A表名稱:City,B表名稱:GoToweb select a.CityName as '出發地', b.CityName as '目的地', c.LeaveDate as '出發時間' from City as a, City as b, Goto as c where c.FromCity = a.CityID and c.ToCity = b.CityID 筆記sql
相關文章
相關標籤/搜索