SQL三表聯合查詢

經過id選出line表中的id,pnt表中的name和blist表中的value. sql

SELECT  a.id AS 編號, b.name AS 名稱, c.value AS 高程
FROM line AS a INNER JOIN pnt AS b
 ON a.id = b.pointid
INNER JOIN blist AS c ON b.pointid = c.bfpcode;
line:
相關文章
相關標籤/搜索