Re: PQoidValue - get last ID of primary key after INSERT - small

Поиск
Список
Период
Сортировка
От Gregory Stark
Тема Re: PQoidValue - get last ID of primary key after INSERT - small
Дата
Msg-id 87psf0xkr1.fsf@stark.xeocode.com
обсуждение исходный текст
Ответ на Re: PQoidValue - get last ID of primary key after INSERT - small  (Georgi Kolev <geo_kolev@mail.ru>)
Список pgsql-interfaces
Georgi Kolev <geo_kolev@mail.ru> writes:

> I agree that the solution INSERT...RETURNING is more general and flexible. But
> I think if we have such a solution as @@identity as in Sybase, PostgreSQL will
> be much more compatible and adoptable for migrations.

What characteristic does @@identity have that lastval() lacks? 


--  Gregory Stark EnterpriseDB          http://www.enterprisedb.com



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: leaving out paramTypes parameter
Следующее
От: osxdeveloper@mac.com
Дата:
Сообщение: Transactions and libpq