Click here to Skip to main content
15,881,709 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
using oracle plsql code to create relations using post table constraints method

What I have tried:

create table TBL_STUDENT1
(
student_id number(10),
student_name1 varchar(15),
student_name2 varchar(15),
student_dob date,
student_email varchar(30),
student_phone varchar(20)
);
alter table TBL_STUDENT1 add primary key(student_id);
Posted
Updated 26-Aug-21 22:07pm

1 solution

13.1.17.5 FOREIGN KEY Constraints[^]

See the example under the Adding Foreign Key Constraints heading.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900