initialized foreign key in sql

Hello geeks! In this tutorial I have shared the details about “initialized foreign key in sql”. Okay, let’s move on to the post.

initialized foreign key in sql

CREATE TABLE Orders
(
OrderID int NOT NULL,
OrderNumber int NOT NULL,
PersonID int,
   
PRIMARY KEY (OrderID),   
FOREIGN KEY (PersonID) REFERENCES Persons(PersonID)

); 

Conclusion

I hope this tutorial helps you to know about “initialized foreign key in sql”. If you have any questions regarding this tutorial please let us know via the comment section. Share this post with your friends & family via social networks.

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coder Diksha. Here, I post about programming to help developers.

Share on:

Leave a Comment