在PostgreSQL中,如何将最后一个id插入表中?
在MS SQL中有SCOPE_IDENTITY().
请不要建议我使用这样的东西:
select max(id) from table
postgresql insert lastinsertid
insert ×1
lastinsertid ×1
postgresql ×1