update table sequence

Поиск
Список
Период
Сортировка
От e.ellenkamp@copernicus-it.nl (Egbert Ellenkamp)
Тема update table sequence
Дата
Msg-id 3ab203b3.242887724@newzilla.xs4all.nl
обсуждение исходный текст
Ответы Re: update table sequence  ("Ross J. Reedstrom" <reedstrm@rice.edu>)
Re: update table sequence  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
All,

Is there a way I can set the sequence of a table equal to highest row
ID?
For example something like:
select setval('mytable_myrowid_seq',select max(myrowid) from mytable);

I read the documentation but could not find anything relevant.

Thanks in advance,

Egbert.


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

Предыдущее
От: "Mourad EL HADJ MIMOUNE"
Дата:
Сообщение: SQL3 support
Следующее
От: Tom Lane
Дата:
Сообщение: Re: List Concatination