Vanilla MySQL doesn't support any sort of referential integrity. You can use "InnoDB" tables (here) that add that functionality. If you're in a shared hosting ...
Tá torthaí a d'fhéadfadh a bheith dorochtana agat á dtaispeáint faoi láthair.
Folaigh torthaí dorochtana