select CONCAT('drop table ',table_schema,'.',TABLE_NAME, ';') from INFORMATION_SCHEMA.tables where table_schema in ('xxx');
select CONCAT('drop function ',ROUTINE_SCHEMA,'.',ROUTINE_NAME, ';') from INFORMATION_SCHEMA.ROUTINES where ROUTINE_SCHEMA in ('xxx');
select CONCAT('drop view ',table_schema,'.',TABLE_NAME, ';') from INFORMATION_SCHEMA.views where table_schema in ('xxx');