Hi, How might I insert a new row into a table and return the id of the new row all in the same SQL statement? The id is generated by a sequence. Up to now I've been getting the nextval of the sequence first and then inserting with the id in a second SQL exec. Is there a faster way (in a general case, without writing SQL or plpgsql functions)? Thanks
- Re: [SQL] fetching the id of a new row Jelle Ouwerkerk
- Re: [SQL] fetching the id of a new row Albert REINER
- Re: [SQL] fetching the id of a new row Richard Huxton