直接看Sql即可:
delete tableA a from tableA a left join tableB b on a.netbar_id = b.netbar_id where b.role_id = 0;
程序猿必读