auto generated keys
| От | Paul Sorenson |
|---|---|
| Тема | auto generated keys |
| Дата | |
| Msg-id | 004001c2edf2$6fe8c6f0$c48b0fcb@home.classware.com.au обсуждение |
| Ответы |
Re: auto generated keys
Re: auto generated keys |
| Список | pgsql-jdbc |
Would I be right in assuming the calls relating to retrieving auto generated
keys are non-trivial to implement?
I have a somewhat klunky hack in an application which immediately after
inserting a row into a table with a "serial" for the primary key I do a
select based on values I know to be unique (at least for the table in
question). I also thought about managing the sequence numbers
programmatically but the other method worked out ok.
So
a) Any ideas about the timeframe for auto generated key retrieval?
b) Is there a "recommended" method for retrieving auto generated keys
with PostgreSQL and JDBC?
paul
В списке pgsql-jdbc по дате отправления: