在b1中写触发器或者先删
delete from b3 where b2id in (select b2id from b2 where b1id=1)
再删
delete from b2 where b1id=1
最后
delete from b1 where b1id=1