From: Rich Ryan <postgres@weblynk.com>
To: pgsql-sql@postgresql.org <pgsql-sql@postgreSQL.org>
Subject: Setting default row value after select into table
Date: Wed, 27 Oct 1999 23:34:16 -0700
Message-ID: <009a01bf210e$75b7c5e0$9befaace@usedcars.com> (raw)
References: <17667.940862730@sss.pgh.pa.us>
<003001bf1f02$39e0e960$9befaace@usedcars.com>
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: postgres@weblynk.com
Subject: Re: Setting default row value after select into table
In-Reply-To: <009a01bf210e$75b7c5e0$9befaace@usedcars.com>
References: <17667.940862730@sss.pgh.pa.us> <003001bf1f02$39e0e960$9befaace@usedcars.com> <009a01bf210e$75b7c5e0$9befaace@usedcars.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