InnoDB mySQL unable to set "ON DELETE SET DEFAULT'. How to set?

前端 未结 3 1607
长发绾君心
长发绾君心 2021-01-18 19:24

I am trying to create a table named EMPLOYEE. When I use the following statements without \"ON DELETE SET DEFAULT\" it is working.

Here is the Error I get with \"ON

3条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-18 20:11

    just use SET NULL rule and define trigger which will try to set to default value with exception handler if your default value has been deleted from master table

提交回复
热议问题