delete from c where bid in(select bid from b where id in(select id from a where 条件))delete from b where id in(select id from a where 条件)