Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: ORA-00905: missing keyword Need advice
FutureZone <bluestar77_at_walla-dot-com.no-spam.invalid> wrote:
> I've got this error when I create a table called "Offering" in
> SQL*Plus as follow:
>
[...]
> CONSTRAINT FKCourseNo FOREIGN KEY(CourseNo) REFERENCES
> Course ON DELETE NO ACTION
[...]
>
> But the error saying missing key... What's wrong with my code? Any
> guidance? Thnks :)
You do not specify which column in Course you reference.
It should be something like
FOREIGN KEY (CourseNo) REFERENCES Course (No)
Yours,
Laurenz Albe
Received on Mon Oct 17 2005 - 10:41:18 CDT