如果无法添加传播删除的约束,则必须自己编写所有必需的删除:
delete employee where companyid in (select companyid from company c where productid = xxx);
delete company where productid=xxx;
delete product where productid=xxx;
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
22623 次 |
最近记录: |