Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: SQL Help
You must reference the entire key of ACCESSLEVEL in your foreign key constraint:
... references ACCESSLEVEL(ACCESSID, TRANSACTIONID) ... CASCADE
hth
Sergey
In article <3950E031.2089DCBE_at_csee.usf.edu>,
@cisco.com wrote:
> Can any one help me out with this code. I am trying to create two
tables
> which are below :
>
> CREATE TABLE ACCESSLEVEL(
> ACCESSID VARCHAR2(30) NOT NULL,
> TRANSACTIONID NUMBER(10) NOT NULL,
> NAME VARCHAR2(30) NOT NULL,
> CONSTRAINT PK_ACCESSLEVEL_ACCESSID_T
> PRIMARY KEY (ACCESSID, TRANSACTIONID)
> );
>
>
/**********************************************************************/
/**********************************************************************/
/**********************************************************************/
/**********************************************************************/
Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Wed Jun 21 2000 - 00:00:00 CDT
![]() |
![]() |