Re: serial type vs. sequences
От | Joshua D. Drake |
---|---|
Тема | Re: serial type vs. sequences |
Дата | |
Msg-id | 3FB2ACFC.9080109@commandprompt.com обсуждение исходный текст |
Ответ на | serial type vs. sequences (Suchandra Thapa <s-thapa-11@alumni.uchicago.edu>) |
Ответы |
Re: serial type vs. sequences
|
Список | pgsql-general |
You are accurate. Suchandra Thapa wrote: >I was wondering if there was a reliable method to get the last id >inserted into a serial column in a table. I believe previous >recommendations given were to use a sequence, have your app get the >nextval for the sequence and then use that in the insert. I was >wondering if things had changed or if that is still the recommended >method. > > > -- Command Prompt, Inc., home of Mammoth PostgreSQL - S/ODBC and S/JDBC Postgresql support, programming shared hosting and dedicated hosting. +1-503-222-2783 - jd@commandprompt.com - http://www.commandprompt.com Editor-N-Chief - PostgreSQl.Org - http://www.postgresql.org
В списке pgsql-general по дате отправления: