Re: A problem about alter table

Поиск
Список
Период
Сортировка
От Jeff Eckermann
Тема Re: A problem about alter table
Дата
Msg-id 20030107150726.8955.qmail@web20802.mail.yahoo.com
обсуждение исходный текст
Ответ на A problem about alter table  ("jack" <datactrl@tpg.com.au>)
Список pgsql-sql
--- 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


В списке pgsql-sql по дате отправления:

Предыдущее
От: Ron Peterson
Дата:
Сообщение: Re: insert rule doesn't see id field
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: [PERFORM] 7.3.1 index use / performance