RE: help with serial type

Поиск
Список
Период
Сортировка
От
Тема RE: help with serial type
Дата
Msg-id 371EAC487A83CD4296F6999FD088D8331B700C@atlas.managestar.com
обсуждение исходный текст
Ответ на help with serial type  (Jason <gee308@mediaone.net>)
Список pgsql-general
Try this command at the psql command line:

CREATE SEQUENCE atable_id_seq;
ALTER TABLE atable ALTER COLUMN id SET DEFAULT
nextval('"atable_id_seq"'::text);

Jeff

-----Original Message-----
How can I make the insert
command automatically update the 'id' to the next highest number?

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

Предыдущее
От: Doug McNaught
Дата:
Сообщение: Re: JDBC speed question.
Следующее
От: Doug McNaught
Дата:
Сообщение: Re: JDBC speed question.