On delete Cascade in php

## On Delete one main table data ,delete related others table data.

ALTER TABLE Courses
ADD FOREIGN KEY (CatCode)
REFERENCES Categories(Code)
ON DELETE CASCADE;

Leave a Reply

Your email address will not be published. Required fields are marked *