Re: sequence question

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: sequence question
Дата
Msg-id 20030109203451.K656-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на sequence question  ("Williams, Travis L, NPONS" <tlw@att.com>)
Список pgsql-general
On Thu, 9 Jan 2003, Williams, Travis L, NPONS wrote:

> Can you manually update the last_value in a sequence?  I moved some
> data around and manually put in some of the sequence numbers.. I fixed
> the problem.. but was wondering for furture reference.

You can use setval() on the sequence to change the next value generated.



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

Предыдущее
От: "Williams, Travis L, NPONS"
Дата:
Сообщение: sequence question
Следующее
От: Jean-Christian Imbeault
Дата:
Сообщение: PostgreSQL/PHP: transactions: how-to abstract out?