From: Imtiaz. S. M <imtiaz_sm@yahoo.com>
To: pgsql-sql@postgresql.org
Subject: Re :Setting default row value after select into table
Date: Fri, 29 Oct 1999 19:06:28 +0530
Message-ID: <3819A2DC.7EE6C077@yahoo.com> (raw)
Try this
create table newtable as select set_of_columns from oldtable
Rich Ryan wrote
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: imtiaz_sm@yahoo.com
Subject: Re: Setting default row value after select into table
In-Reply-To: <3819A2DC.7EE6C077@yahoo.com>
References: <3819A2DC.7EE6C077@yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox