ALTER TABLE SET DEFAULT

Поиск
Список
Период
Сортировка
От Raphael Bauduin
Тема ALTER TABLE SET DEFAULT
Дата
Msg-id 20020426074903.GA13787@raphael
обсуждение исходный текст
Список pgsql-novice
Hi,

I couldn't find the right syntax to add a DEFAULT value for a column in
an existing table. I'm actually workin on a migration from MSSQL to
postgres, and the scripts generated by mssql include such statements as:

alter table contacts  add constraint df_contacts_languageid default (0) for languageid;

How do I convert this to a psql statement? I didn't find an example in
the docs or on google.

Thanks for your help!

Raph

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

Предыдущее
От: AarniRuuhimäki / Megative Tmi / KYMI.com
Дата:
Сообщение: Fwd: Strange behaviour
Следующее
От: Raphael Bauduin
Дата:
Сообщение: answer for: ALTER TABLE SET DEFAULT