Understanding Foreign Key in SQL: Easy Tutorial for Students and Beginners
A Foreign Key is a column in one table that is used to connect it with another table. Think of it like a relationship: So: Rules of Foreign Key Example in MySQL Table 1: students Data: student_id name 1 Ramesh 2 Priya Table 2: marks Here: Insert Data sqlINSERT INTO marks VALUES (1, 1, ‘Maths’, … Read more