From: Alessandro Pedrotti <AlessandroP@Anthesi.it>
To: pgsql-sql@postgresql.org
Subject: R: adding not null constraints on columns
Date: Wed, 12 Feb 2003 08:49:11 +0100
Message-ID: <C1E0CA0FF6B6D311A2570060086D476A6B51EB@YAVIN> (raw)
ALTER TABLE myTable ADD CONSTRAINT constraintName CHECK (myColumn IS NOT
NULL);
-----Messaggio originale-----
Da: Susan [mailto:brknrose@counterconspiracy.org]
Inviato: mercoledì 12 febbraio 2003 00:45
A: pgsql-sql@postgresql.org
Oggetto: [SQL] adding not null constraints on columns
Is there a way to add not null constraints on a column after the column has
been created? Any help would be appreciated. Thanks.
The most likely way for the world to be destroyed, most experts agree, is by
accident. That's where we come in; we're computer professionals. We cause
accidents.
Nathaniel Borenstein (1957 - )
brknrose@counterconspiracy.org <mailto:brknrose@counterconspiracy.org>
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: AlessandroP@Anthesi.it
Subject: Re: R: adding not null constraints on columns
In-Reply-To: <C1E0CA0FF6B6D311A2570060086D476A6B51EB@YAVIN>
References: <C1E0CA0FF6B6D311A2570060086D476A6B51EB@YAVIN>
* 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