假设我有一个外键,其动作是:
on delete set default, on update cascade
如果我想更改操作,如何在 alter table 选项中指定?
我试过这个:
change my_table add on delete cascade my_key;
但它给出了一个语法错误:
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'on delete cascade matricola' at line 1
我想更改删除引用的主键时触发的默认操作。