From: George Moga <george@flex.ro>
To: SQL PostgreSQL <pgsql-sql@postgreSQL.org>
Subject: Re: [SQL] default in ALTER
Date: Thu, 22 Apr 1999 14:33:39 +0300
Message-ID: <371F0913.D8041654@flex.ro> (raw)
References: <6596.990422@webclub.ru>
"Àíäðåé Íîâèêîâ" wrote:
> Hello.
>
> Is there any way to set default value in
> alter table products add column ...
>
> Andrey Novikov
If I know the right answer, is no way to add default value for a field whith
alte table command.
When I want to add a default value I do:
1. pg_dump database > one_file.sql
2. edit the .sql file
3. recreate the database from file.sql
Sorry for my english.
--
Best,
George Moga,
george@flex.ro
Braila, ROMANIA
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: george@flex.ro
Subject: Re: [SQL] default in ALTER
In-Reply-To: <371F0913.D8041654@flex.ro>
References: <6596.990422@webclub.ru> <371F0913.D8041654@flex.ro>
* 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