Re: mysql's last_insert_id

Поиск
Список
Период
Сортировка
От Bo Lorentsen
Тема Re: mysql's last_insert_id
Дата
Msg-id 1062075176.1923.1446.camel@localhost
обсуждение исходный текст
Ответ на Re: mysql's last_insert_id  (Dennis Björklund <db@zigo.dhs.org>)
Ответы Re: mysql's last_insert_id
Список pgsql-general
On Thu, 2003-08-28 at 10:02, Dennis Björklund wrote:

> Yes, never use the oid at all is my suggestion.
Hmm, will oid's not change so that they are unique regardless, or will
oid be removed.

> If you need a unique id for a row then add a serial column that will
> provide that, and use currval('the_sequence') to get the last inserted
> value in that column for a session.
This is just not a general solution to this problem, and will need
awareness of the id type in the application layer.

/BL


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

Предыдущее
От: "Nigel J. Andrews"
Дата:
Сообщение: Re: plpgsql FOUND Variable
Следующее
От: Oleg Bartunov
Дата:
Сообщение: Re: tsearch: how to get a list of stopwords?