mysql三表關聯查詢

條件: a,b,c三張表,a表裏面有b,c表的主鍵 三張表,須要獲得的數據是標紅色部分的。sql以下: sql 方法一: 內鏈接 select a.uid,a.uname,a.upsw,a.urealname,a.utel,a.uremark, b.rid,b.rname,b.rremark,c.deptid,c.deptname,c.deptremark from table1 a,table
相關文章
相關標籤/搜索