![]() Both primary and foreign keys are generally INTs. On the other hand, a foreign key is used to create a link between the data in two tables, and to control the data that can be stored in the table where the foreign key is located. Creating Tables with Primary and Foreign Keysīefore we dive into creating tables, there are two fundamental concepts about relational databases that we need to review: primary and foreign keys.Ī primary key contains a value that uniquely identifies each row, or record, in the table.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |