| От | Bo Lorentsen |
|---|---|
| Тема | Re: mysql's last_insert_id |
| Дата | |
| Msg-id | 1062049686.1925.1408.camel@localhost обсуждение исходный текст |
| Ответ на | mysql's last_insert_id (Michal Adamczakk <pokryfka@artland.com.pl>) |
| Ответы |
Re: mysql's last_insert_id
|
| Список | pgsql-general |
On Fri, 2003-08-22 at 22:03, Michal Adamczakk wrote: > how to implement mysql's last_insert_id() ? You will be able to use the "PQoidValue" function that returns the last inserted row oid, just after an insert command. Then if you want the newly inserted row you do something like this "SELECT * FROM table_name WHERE oid=42", where 42 is the oid number returned from the "PQoidValue". Now ... I know that its possible to omit the oid's from large tables, and then this method will not work anymore. What to do in this case still eludes me (Anyone ?) :-) /BL
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера