Article View: comp.databases.oracle.server
Article #13Re: sql statement ERROR please help......
From: Noel
Date: Thu, 05 Jul 2001 07:00
Date: Thu, 05 Jul 2001 07:00
69 lines
2815 bytes
2815 bytes
Yes, you only can change constraint_state in alter table modify
constraints.. clause.
BUT if you really need to change that in one SQL here there is:
(connect as user who got privileges to sys obj)
UPDATE sys.cdef$
SET condition = New_Codition_Here
WHERE con# = (
select c.con#
from sys.obj$ o, sys.cdef$ c, sys.con$ oc
where c.obj# = o.obj#
and o.name = 'TTT'
and oc.name = 'E'
and oc.con# = c.con#
);
Have Fun.
U�ytkownik "Sybrand Bakker" <postbus@sybrandb.demon.nl> napisa� w wiadomo�ci
news:tk6o36hpr5h2c1@beta-news.demon.nl...
>
> "penny" <boy_66@hotmail.com> wrote in message
> news:a7c8116a.0107040956.24128126@posting.google.com...
> > 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.
>
>
> You can't
> You need to drop the constraint and recreate it.
> Please try to consult the sql reference manual before posting these typing
> of questions.
>
> Regards,
>
> Sybrand Bakker, Senior Oracle DBA
>
>
>
Technical Details
Message-ID:
<3b440f9e@news.vogel.pl>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!isdnet!news.internetia.pl!news.tpi.pl!news.vogel.pl!nnrpReferences:
<a7c8116a.0107040956.24128126@posting.google.com> <tk6o36hpr5h2c1@beta-news.demon.nl>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: fa4f9,cb7915e186f826ca X-Google-Attributes: gidfa4f9,public X-Google-Thread: 10de66,cb7915e186f826ca X-Google-Attributes: gid10de66,public X-Google-Thread: f5464,cb7915e186f826ca X-Google-Attributes: gidf5464,public X-Google-ArrivalTime: 2001-07-04 23:55:49 PST From: "Noel" <tbal@inchrosoft.com.pl> Newsgroups: comp.databases.oracle.server,borland.public.delphi.database.sqlservers,comp.databases.oracle.tools References: <a7c8116a.0107040956.24128126@posting.google.com> <tk6o36hpr5h2c1@beta-news.demon.nl> Subject: Re: sql statement ERROR please help...... Date: Thu, 5 Jul 2001 09:00:08 +0200 Lines: 71 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 NNTP-Posting-Host: 2795.piaseczno.leased-e.ids.pl X-Original-NNTP-Posting-Host: 2795.piaseczno.leased-e.ids.pl Message-ID: <3b440f9e@news.vogel.pl> X-Trace: news.vogel.pl 994316190 2795.piaseczno.leased-e.ids.pl (5 Jul 2001 08:56:30 +0200) X-Complaints-To: Usenet@news.vogel.pl Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!isdnet!news.internetia.pl!news.tpi.pl!news.vogel.pl!nnrp