Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: check statement and assertion

Re: check statement and assertion

From: Daniel Morgan <damorgan_at_x.washington.edu>
Date: Wed, 26 Nov 2003 13:48:22 -0800
Message-ID: <1069883330.895974@yasure>


laststubborn wrote:

> I am trying to write a constraint in Oracle 9 with SQL statement.
> During the creation of the table I have written
>
> check(exist
> (select line_no, count(*)
> from sections
> group by line_no
> having count(*)<=4));
>
> but this is not working. Is there anyway to get it worked?
>
> Thank you

What is the origin of this syntax? Where did you find this?

I ask because I've never seen anything like it in Oracle and just looked all over tahiti.oracle.com and otn.oracle.com and can not find any syntax even remotely resembling this.

-- 
Daniel Morgan
http://www.outreach.washington.edu/ext/certificates/oad/oad_crs.asp
http://www.outreach.washington.edu/ext/certificates/aoa/aoa_crs.asp
damorgan_at_x.washington.edu
(replace 'x' with a 'u' to reply)
Received on Wed Nov 26 2003 - 15:48:22 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US