批量删除mysql库中数据
-- 查询构建批量删除表语句(根据数据库名称)
select
concat('delete from ', TABLE_NAME, ' where org_id = "<条件id>" ', ';')
from
information_schema.TABLES
where TABLE_SCHEMA = '<数据库名>';

-- 将查询出来的sql语句复制出来
-- 执行sql语句

-- 查询构建批量删除表语句(根据数据库名称)
select
concat('delete from ', TABLE_NAME, ' where org_id = "<条件id>" ', ';')
from
information_schema.TABLES
where TABLE_SCHEMA = '<数据库名>';

-- 将查询出来的sql语句复制出来
-- 执行sql语句
