Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

alter sequence + subqueries

Поиск
Список
Период
Сортировка
От jeff sacksteder
Тема alter sequence + subqueries
Дата
Msg-id 51c8a7be050916153613795e1a@mail.gmail.com
обсуждение исходный текст
Ответы Re: alter sequence + subqueries
Re: alter sequence + subqueries
Список pgsql-sql
The postgres-specific sql extension 'ALTER SEQUENCE' does not appear to support subqueries.<br /><br /> I have inserted
somedata into a table, including values in the primary key. I want to reset the associated sequence so that any further
recordsto be inserted into that table  resume numbering correctly. The statement I attempted was:<br /><br /> ALTER
SEQUENCEfoo_id_seq <br /> RESTART WITH (SELECT max(id) FROM foo);<br /><br /> Is this syntax correct and supported?<br
/><br/>  <br /> 

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