Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以向级联定义添加条件以限制删除行,例如
... FOREIGN KEY (building_no) REFERENCES buildings (building_no) *WHERE `otherField` = '<some value>'*
我想将删除限制为仅在另一个字段中具有特定值的那些记录?条件在目标表中,即应该删除记录的表。