alter sequence + subqueries

Поиск
Список
Период
Сортировка
От jeff sacksteder
Тема alter sequence + subqueries
Дата
Msg-id 51c8a7be050916153613795e1a@mail.gmail.com
обсуждение исходный текст
Ответы Re: alter sequence + subqueries  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Re: alter sequence + subqueries  (Michael Fuhr <mike@fuhr.org>)
Список 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 по дате отправления:

Предыдущее
От: Daryl Richter
Дата:
Сообщение: Re: showing multiple REFERENCE details of id fields in single
Следующее
От: Kenneth Dombrowski
Дата:
Сообщение: plpgsql function not accepting NULL value