Foreign Key Implementation with Example in SQL - Hindi

Опубликовано: 06 Октябрь 2024
на канале: Javatpoint
1,172
26

SQL Query to implement foreign key in a table in Hindi #sql #sqlforbeginners #javatpoint

Foreign key implementation in SQL is the process of adding a foreign key constraint to a table in a database. A foreign key is a column or group of columns in a database table that is used to establish and enforce a link between the data in two tables. This link is created by adding a foreign key to one of the tables, which is used to reference the primary key of the other table. Foreign key constraints ensure that the data in the related tables is consistent and that any data that is added, deleted, or modified in one table is also reflected in the other table.