How to set up cascading deletes in MySQL workbench?

20,744

Right Click On Table -> Alter Table -> Foreign Keys Tab

Look at the upper-right corner "Foreign Key Options", there are two drop down boxes, one is to specify the delete action: "On Delete"

enter image description here

Share:
20,744
MadSeb
Author by

MadSeb

Updated on August 20, 2020

Comments

  • MadSeb
    MadSeb almost 4 years

    In MySQL Workbench, how do you set up a cascading delete on a relationship?

    I clicked the relationship line and clicked on properties but I do not see any mention of a cascading delete option.

  • Murilo
    Murilo over 3 years
    i dont understand why they dont add this to the other FK view too