From: Jeff Eckermann <jeff_eckermann@yahoo.com>
To: jack <datactrl@tpg.com.au>
To: pgsql-sql@postgresql.org
Subject: Re: A problem about alter table
Date: Tue, 7 Jan 2003 07:07:26 -0800 (PST)
Message-ID: <20030107150726.8955.qmail@web20802.mail.yahoo.com> (raw)
In-Reply-To: <001601c2b64b$ba8c3b30$1400a8c0@jac>
--- jack <datactrl@tpg.com.au> wrote:
> Hi, all
> I'm using postgreSQL 7.2.3. The following statement
> always cuases a parser
> error, "parse error at or near NOT". Please adivse,
> thank you in advance.
>
> ALTER TABLE _acct_group1
> ALTER groupkey SET NOT NULL;
I believe you will need to use:
ALTER TABLE _acct_group1 ADD CONSTRAINT <constraint
name> CHECK groupkey NOT NULL;
I haven't checked that syntax for correctness, but
it's covered in the docs on ALTER TABLE.
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: jeff_eckermann@yahoo.com, datactrl@tpg.com.au
Subject: Re: A problem about alter table
In-Reply-To: <20030107150726.8955.qmail@web20802.mail.yahoo.com>
* 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