Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Foreign composite keys
hi Gabe
Gabe Goldhirsh wrote:
>
> In ORACLE 7, what is the syntax for constructing a foreign composite
> key, so far I have: [and am still getting an error]
> DROP TABLE account;
> CREATE TABLE account
> (
> server VARCHAR2(15),
> memory VARCHAR2(15),
> classification VARCHAR2(15),
> user_id VARCHAR2(15),
> password VARCHAR2(15),
> FOREIGN KEY (user_id)
> AND FOREIGN KEY (password)
> );
FOREIGN KEY(user_id, password) REFERENCES etc...
Regards
Konstantin V. Sartakov Kuzbassprombank Kemerovo Russia mailto:skv_at_kpbank.ruReceived on Wed Jun 18 1997 - 00:00:00 CDT
![]() |
![]() |