adding not null constraint to existing table

From: Alex Howansky <alex(at)wankwood(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: adding not null constraint to existing table
Date: 2001-02-02 17:23:33
Message-ID: Pine.LNX.4.30.0102021120210.9610-100000@net-srv-0001.bvrd.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


What's the simplest way to add a not null constraint to a field in an existing
table? It doesn't seem that alter table supports it -- that I'll have to create
a new table and copy into it. Is that correct? TIA,

--
Alex Howansky
Wankwood Associates
http://www.wankwood.com/

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Lamar Owen 2001-02-02 17:23:37 Re: Perl Interface Documentation
Previous Message Mike Mascari 2001-02-02 17:09:14 RE: Left Join Complex Query