Hi On 08/03/16 05:32, Igal @ Lucee.org wrote: > THE ISSUE: > > In JDBC there is a flag called RETURN_GENERATED_KEYS -- https://docs.oracle.com/javase/7/docs/api/java/sql/Statement.html#RETURN_GENERATED_KEYS > (...) > THE PROPOSAL: > > The proposal is to allow something like RETURNING primary_key() (it can be a keyword, not > necessarily a function), e.g. > > INSERT INTO test VALUES ('PostgresQL') RETURNING primary_key(); FYI something similar has been proposed before: http://www.postgresql.org/message-id/53953EFB.8070701@2ndquadrant.com The linked thread might provide more insights into the issues surrounding this proposal. Regards Ian Barwick -- Ian Barwick http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных