Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

foreign key

USE Organization
CREATE TABLE Employee
(
Id INT PRIMARY KEY IDENTITY(1,1),
Name VARCHAR (50) NOT NULL,
Age INT,
Gender VARCHAR (50),
Dep_Id int FOREIGN KEY REFERENCES Department(Id),
Insur_Id int FOREIGN KEY REFERENCES Insurance(Id)
)
Source by codingsight.com #
 
PREVIOUS NEXT
Tagged: #foreign #key
ADD COMMENT
Topic
Name
4+5 =