查询库中所有的表
SELECT CONCAT('TRUNCATE TABLE ',table_name,';') FROM information_schema.tables WHERE table_schema='database_name' ; -- database_name为要删除的库
生成的语句复制到粘贴板
复制,执行
转载于:https://www.cnblogs.com/lisongyu/p/10830538.html
查询库中所有的表SELECT CONCAT('TRUNCATE TABLE ',table_name,';') FROM information_schema.tables WHERE table_schema='database_name' ; -- database_name为要删除的库
生成的语句复制到粘贴板
复制,执行
转载于:https://www.cnblogs.com/lisongyu/p/10830538.html