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

前端 未结 3 1634
时光取名叫无心
时光取名叫无心 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:34

    Key fact: 1. Both table must be have innodb storage engine. 2. The datatype and length should be same in both table. 3. The field in 2nd table should be created as index.

    Hope it will help someone...

提交回复
热议问题