Re: alter table

Поиск
Список
Период
Сортировка
От Owen Jacobson
Тема Re: alter table
Дата
Msg-id 144D12D7DD4EC04F99241498BB4EEDCC2207C4@nelson.osl.com
обсуждение исходный текст
Ответ на alter table  (Maciej Piekielniak <piechcio@isb.com.pl>)
Список pgsql-sql
Maciej Piekielniak wrote:
>
> Hello Owen,
>
> Wednesday, February 15, 2006, 8:56:05 PM, you wrote:
> >> ALTER TABLE proc MODIFY name varchar(64) DEFAULT '' NOT NULL;
>
> OJ> Not under 7.4.
>
> Hmm, maybe postgres can copy constraints and properties in
> "create table .. as select"?

What is it you're actually trying to accomplish?  There's got to be a better way, but without understanding what you're
doing(rather than how) it's hard to give you advice. 

CREATE TABLE AS and SELECT INTO only reproduce data, not metadata.  AFAIK duplicating a table's constraints involves
fishingaround in the pg_ system tables. 

-Owen


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

Предыдущее
От: Maciej Piekielniak
Дата:
Сообщение: Re: alter table
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: alter table