Re: reading last inserted record withoud any autoincrement field

Поиск
Список
Период
Сортировка
От Osvaldo Kussama
Тема Re: reading last inserted record withoud any autoincrement field
Дата
Msg-id 690707f60910041137l340d2873le86d8f3458188471@mail.gmail.com
обсуждение исходный текст
Ответ на reading last inserted record withoud any autoincrement field  (mohammad qoreishy <m_qoreishy@yahoo.com>)
Ответы Re: reading last inserted record withoud any autoincrement field  (Rob Sargent <robjsargent@gmail.com>)
Список pgsql-sql
2009/10/4 mohammad qoreishy <m_qoreishy@yahoo.com>
>
> How can get last inserted record in a table without any autoincrement filed?
> I need to  frequently fetch the last inserted record.
> If I must use the "Cursor" please explain your solution.
>


RETURNING clause?
http://www.postgresql.org/docs/current/interactive/sql-insert.html

Osvaldo


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Common table expression - parsing questions
Следующее
От: Rob Sargent
Дата:
Сообщение: Re: reading last inserted record withoud any autoincrement field