Re: getting primary key values for inserted records?

Поиск
Список
Период
Сортировка
От Guido Fiala
Тема Re: getting primary key values for inserted records?
Дата
Msg-id 200401281446.26641.guido.fiala@dka-gmbh.de
обсуждение исходный текст
Ответ на Re: getting primary key values for inserted records?  (Jeremy Buchmann <jeremy@wellsgaming.com>)
Список pgsql-jdbc
Am Dienstag, 27. Januar 2004 22:26 schrieben Sie:
> > If you don't mind running two statements, you can select the next value
> > from the sequence and then put it in your insert statement.  Like this:
> >
> > $pkey = "SELECT nextval('sequence_name')";
> > "INSERT INTO table (id, ...) VALUES ($pkey, ...)";
> >

Yup! That is just fine, many thanks!

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

Предыдущее
От: Dave Cramer
Дата:
Сообщение: Re: a little disillusioned
Следующее
От: Guido Fiala
Дата:
Сообщение: setQueryTimeOut(1) - not expected result...