Re: adding defaults - Mailing list pgsql-admin

From Peter Eisentraut
Subject Re: adding defaults
Date
Msg-id 200407141909.24359.peter_e@gmx.net
Whole thread Raw
In response to adding defaults  (Jodi Kanter <jkanter@virginia.edu>)
List 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/


pgsql-admin by date:

Previous
From: Oliver Elphick
Date:
Subject: Re: adding defaults
Next
From: Rosser Schwarz
Date:
Subject: Re: adding defaults