[NOVICE] alter existing table column with primary key to auto-increment

Поиск
Список
Период
Сортировка
От Rounak Jain
Тема [NOVICE] alter existing table column with primary key to auto-increment
Дата
Msg-id CANNuxWPgcdygHPNqenfC3Ma_qpxHCO=2FTPoZZjpNS88TdwWiA@mail.gmail.com
обсуждение исходный текст
Ответы Re: [NOVICE] alter existing table column with primary key to auto-increment  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-novice
I am just starting with psql.
I have created surrogate id keys in some tables.
They are primary keys.
I want to add auto-increment to them.
I can drop and then create new columns like this:

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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: [NOVICE] Trouble with IN operator
Следующее
От: Rounak Jain
Дата:
Сообщение: Re: [NOVICE] alter existing table column with primary key to auto-increment