Re: get last sequence

Поиск
Список
Период
Сортировка
От Alfonso Peniche
Тема Re: get last sequence
Дата
Msg-id 3A72295E.71E903D7@iteso.mx
обсуждение исходный текст
Ответ на get last sequence  ("Mr. Chan" <daatmor@hongkong.com>)
Список pgsql-general
"Mr. Chan" wrote:

> dear all,
>     how to get last sequence from postgresql? I mean such mysql
> last_insert_id function or ms sql select @@identity.
> thanks!
> Chan

Select currval('sequence_name_id') from tablename;

this will give you the last sequence generated in tablename


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

Предыдущее
От: Trurl McByte
Дата:
Сообщение: Unique ID of connection
Следующее
От: The Hermit Hacker
Дата:
Сообщение: Re: postgres limitation