select CONCAT('drop table ', table_schema, '.', TABLE_NAME, ';') as sql_statement
from information_schema.tables
where table_schema in ('这里填写你的数据库名', '可以填写多个')
select CONCAT('drop table ', table_schema, '.', TABLE_NAME, ';') as sql_statement
from information_schema.tables
where table_schema in ('这里填写你的数据库名', '可以填写多个')
CONCAT('drop table ', table_schema, ‘.’, TABLE_NAME, ‘;’)
where table_schema in (‘这里填写你的数据库名’, ‘可以填写多个’)
drop database newcoder;
create database newcoder;