Re: altering a table to set serial function

Поиск
Список
Период
Сортировка
От Pierre-Frédéric Caillaud
Тема Re: altering a table to set serial function
Дата
Msg-id opsbuhe0kpcq72hf@musicbox
обсуждение исходный текст
Ответ на Re: altering a table to set serial function  ("Scott Marlowe" <smarlowe@qwest.net>)
Список pgsql-general
> test=> alter table test add id int4 unique;
> NOTICE:  ALTER TABLE / ADD UNIQUE will create implicit index
> "test_id_key" for table "test"
> ALTER TABLE

    I'd add UNIQUE NOT NULL or PRIMARY KEY just in case some UPDATE tries to
modify the id field to NULL which would be a Very Bad Thing to do.

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

Предыдущее
От: Pierre-Frédéric Caillaud
Дата:
Сообщение: Re: altering a table to set serial function
Следующее
От: Pierre-Frédéric Caillaud
Дата:
Сообщение: Re: Sql injection attacks