Re: adding defaults

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Jodi Kanter <jkanter(at)virginia(dot)edu>, Postgres Admin List <pgsql-admin(at)postgresql(dot)org>
Subject: Re: adding defaults
Date: 2004-07-14 17:09:24
Message-ID: 200407141909.24359.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Jodi Kanter wrote:
> Can field specific defaults easily be added to a table that is
> already in existence and has data in it? I cannot seem to locate the
> correct ALTER command in any of my books.

ALTER TABLE a ALTER COLUMN b SET DEFAULT c;

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Rosser Schwarz 2004-07-14 17:11:51 Re: adding defaults
Previous Message Oliver Elphick 2004-07-14 16:52:21 Re: adding defaults