Setting default row value after select into table

Поиск
Список
Период
Сортировка
От Rich Ryan
Тема Setting default row value after select into table
Дата
Msg-id 009a01bf210e$75b7c5e0$9befaace@usedcars.com
обсуждение исходный текст
Ответ на Re: [SQL] Vacuum takes more than 1 hr  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
When I do somthing like
select cdate into table newt from oldt;
and say, row cdate in table oldt had a default value of 'now', the new table
newt doesn't have the default value anymore. This makes sense since it is
copying just data, not meta-data into the new table. So, is there a way to
alter the cdate row in the new table to have a default? Could not find an
alter table command for this.
Thanks,
Rich




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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [SQL] Date comparisons
Следующее
От: Haris Susanto
Дата:
Сообщение: Re: [SQL] Date comparisons