postgresql 多表join

多表连接时,要注意语法,应该如下:

select * from a inner join b on a.id=b.id

inner join c on a.id=c.id

错误写法:

select * from a inner join b

inner join c

on a.id=b.id

and a.id=c.id

refurl:http://www.yesky.com/club/topic/5000/933787.html

猜你喜欢

转载自wandejun1012.iteye.com/blog/1929428