网中网 发表于 2016-11-19 10:15:50

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
页: [1]
查看完整版本: postgresql 多表join