How to add on delete cascade and on update restrict using phpmyadmin?

前端 未结 3 1633
时光取名叫无心
时光取名叫无心 2021-02-04 00:20

I want to add \'On delete cascade and on update restrict\' on foreign keys through phpmyadmin user Interface instead of executing query.

I generall

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-04 00:32

    In the tab where you define the table structure, you get the list of columns and their properties and underneath that there should be a link "relation view", between "print view", and "propose table structure."

    That's where you want to go, but you have to have created the index on both tables already. Also, you might want to make sure you're using mysql's innoDB storage engine.

    Edit : An image is worth 1000 words : highlighted a few buttons in phpmyadmin interface

提交回复
热议问题