--- 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