例 表 a 有aid和name 表b 有bid bid数据为aid值 怎么根据name删除b表数据
3条回答 默认 最新
tony4geek 2016-01-27 06:43关注delete t from b t where exists(select 1 from a where aid=t.bid and name ='你的name ')
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
delete t from b t where exists(select 1 from a where aid=t.bid and name ='你的name ')