MYSQL表关联删除
#4张表关联删除
DELETE sp,sps,spt,sst
FROM `sys_preset` sp
LEFT JOIN sys_preset_type spt ON sp.type_id=spt.type_id
LEFT JOIN sys_preset_scene sps ON sp.scene_id=sps.scene_id
LEFT JOIN sys_stay_t sst ON sp.stay_id=sst.stay_id
WHERE preset_id=3
来源:CSDN
作者:草莓奶昔的甜
链接:https://blog.csdn.net/mws666/article/details/103496770