How to get generated primary key?

Поиск
Список
Период
Сортировка
От Sven Köhler
Тема How to get generated primary key?
Дата
Msg-id cv7rtb$1d6$1@sea.gmane.org
обсуждение исходный текст
Ответы Re: How to get generated primary key?  (Kris Jurka <books@ejurka.com>)
Список pgsql-jdbc
Hi,

i know about the nextval and currval functions, but i don't like them,
since they don't apply to tables. To get the generated key, you have to
know the name of the sequence, not just the name of the table.

Does the JDBC-Driver implement the getGeneratedKeys() method?
If not, does PostgreSQL provide any way to get the just generated key,
without knowing the sequencename?


Thx
   Sven

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: peter royal
Дата:
Сообщение: Re: DatabaseMetaData.getIndexInfo and function-based indexes
Следующее
От: Sven Köhler
Дата:
Сообщение: Re: getGeneratedKeys method