橫向連接查詢與縱向連接查詢

連接查詢   橫向連接查詢 【前提是兩個表有相關聯的兩列】 方法一(常用) select haha.name as 姓名,sex as 性別,bumen.name as 部門,ceo as 主任,bumen.phone as 電話 from haha,bumen where haha.bumen=bumen.code   方法二:join  on  連接 select haha.name,bume
相關文章
相關標籤/搜索