| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера