delete from us_account where userId in (select userId from (SELECT u.userId from us_user u where u.mobile in (18620384332,13590195718,18173102103,13428790860,18926567008,15002059895,15822304763))a)
delete from us_password where userId in (select userId from (SELECT u.userId from us_user u where u.mobile in (18620384332,13590195718,18173102103,13428790860,18926567008,15002059895,15822304763))a)
delete from us_user where userId in (select userId from (SELECT u.userId from us_user u where u.mobile in (18620384332,13590195718,18173102103,13428790860,18926567008,15002059895,15822304763))a)
mysql通过查询并且执行删除关联数据
猜你喜欢
转载自blog.csdn.net/semial/article/details/80691953
今日推荐
周排行