sequence

Поиск
Список
Период
Сортировка
От Robert Morgan
Тема sequence
Дата
Msg-id 40B11BE5.30806@ihug.co.nz
обсуждение исходный текст
Ответы Re: sequence  (Manuel Sugawara <masm@fciencias.unam.mx>)
Список pgsql-novice
Is it possible to change an existing field to a sequence?

I have a field that contains ID numbers and I want this field to
autoincrement evrytime a new row is inserted.

The existing field is int8, (this database has been imported to
Postgresql using DBTools import wizard.)
Do I need to drop the existing column and create a new one using create
sequence.....?
and then I can use the nextval() in the insert query?

thanks
Bob





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

Предыдущее
От: Rory Campbell-Lange
Дата:
Сообщение: Re: New from mssql. Help please
Следующее
От:
Дата:
Сообщение: phppgadmin on Debian/unstable (sort of)