From: Thomas Good <tomg@sqlclinic.net>
To: PostgreSQL SQL List <pgsql-sql@postgreSQL.org>
Subject: CHECK CONSTRAINT blunder(s)
Date: Tue, 14 May 2002 16:50:20 -0400 (EDT)
Message-ID: <Pine.LNX.4.05.10205141642320.13091-100000@admin.nrnet.org> (raw)
Hi,
Can someone clue me in as to proper syntax for adding a not null
check constraint? I've fumbled around a bit without much luck
and I don't see this covered in the alter table section of the
interactive docs.
My pseudo code is:
ALTER TABLE doof ADD CONSTRAINT bleibt_doof NOT NULL (record_id);
But obviously this fails.
TIA - Cheers
-----------------------------------------------------------------------
Thomas Good e-mail: tomg@sqlclinic.net
Programmer/Analyst phone: (+1) 718.818.5528
Residential Services fax: (+1) 718.818.5056
Behavioral Health Services, SVCMC-NY mobile: (+1) 917.282.7359
-- --
SQL Clinic - An Open Source Clinical Record www.sqlclinic.net
------------------------------------------------------------------------
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: tomg@sqlclinic.net
Subject: Re: CHECK CONSTRAINT blunder(s)
In-Reply-To: <Pine.LNX.4.05.10205141642320.13091-100000@admin.nrnet.org>
References: <Pine.LNX.4.05.10205141642320.13091-100000@admin.nrnet.org>
* 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