Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Primary keys
Hi,
I am new to Oracle and would like some advice in creating primary keys. I have created a with the SQL syntax below.
I have a few of questions:
Regards,
Robert
CREATE INDEX student_dob
ON student (dob);
CREATE INDEX student_gender
ON student (gender);
CREATE INDEX student_surname
ON student (surname);
ALTER TABLE student
ADD (CONSTRAINT addr_stud FOREIGN KEY (homeaddress_id)
REFERENCES address (address_id),
CONSTRAINT addr_stud2 FOREIGN KEY (termaddress_id)
REFERENCES address (address_id)
);
Received on Sat Mar 08 2003 - 13:41:16 CST
![]() |
![]() |