Mysql多表关联删除操作 直接看Sql即可: delete tableA a from tableA a left join tableB b on a.netbar_id = b.netbar_id where b.role_id = 0; 程序猿必读