你能幫我與下面的語法錯誤語法錯誤 - PostgreSQL的
列引用「ID」是不明確的是我得到的錯誤。
insert into table1 (id, name, type, version)
select id, '<needs updating>' as name, 'external' as type, -1 as version
from table2
left outer join table1
on table2.id = table1.id
where table1.id is null
group by table2.id, table1.name
order by table2.id, table1.name
有什麼不清楚的錯誤消息? –