Re: bigserial coloumn

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: bigserial coloumn
Дата
Msg-id 4292DC97.6000208@archonet.com
обсуждение исходный текст
Ответ на bigserial coloumn  ("Surabhi Ahuja " <surabhi.ahuja@iiitb.ac.in>)
Список pgsql-general
Surabhi Ahuja wrote:
> I have a table in which one attribute "id" is a bigserial
>
> when i say
> select setval('table_id_seq', 0);
> it says: values 0 is out of bounds.
> what should i do?

Try a "SELECT * FROM table_id_seq" and see what it's min_value is - I'm
guessing it's set to 1.

HTH
--
   Richard Huxton
   Archonet Ltd

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

Предыдущее
От: Patrik Kudo
Дата:
Сообщение: Re: Problem merging two rows into same primary key
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: Unsubscribe