I have two tables
- Students
2. Addresses
Column in students : `id`, `name`, `roll_number`, `fk_address_id`
Column in addresses : `id`, `first_add`, `second_add`, `third_add`
Now I want to add foreign key between these two tables in which way, if I delete a student then the address of this student also be deleted. How can I do this??
Question and answer is powered by AnsPress.io