Re: sql startment problem PLEASE HELP .....

From: Stephen Bell <stephen(dot)bell(at)cgi(dot)ca>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: sql startment problem PLEASE HELP .....
Date: 2001-07-04 17:57:51
Message-ID: 3B43591F.5AEEBDB5@cgi.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi Penny,

I hope someone proves me wrong, but I don't think you can modify a
constraint like that....I believe you have to drop it and recreate it.

Steve

penny wrote:

> Hi all,
>
> I am using Oracle8i Enterprise Edition in window 2000
>
> my problem as following
>
> ~~~~~~~~~~~~~~~~~~~~~
>
> SQL> create table ttt
> 2 ( name varchar2(100)
> 3 ,
> 4 constraint e check (name = lower(name)));
>
> Table created.
>
> SQL> alter table ttt
> 2 modify constraint e
> 3 check (name = upper(name));
> check (name = upper(name))
> *
> ERROR at line 3:
> ORA-00933: SQL command not properly ended
>
>
> How can I modify constraint e ????
>
> thanks.

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message DI Hasenöhrl 2001-07-04 19:37:13 Kind of error-handler in a pgsql function
Previous Message penny 2001-07-04 17:49:44 sql startment problem PLEASE HELP .....