mysql

SELECT CONCAT('drop table  ', t.table_name ,' ;') as table_name FROM information_schema.TABLES t WHERE t.TABLE_SCHEMA='test2'



SELECT CONCAT('ALTER TABLE ', t.table_name ,' DROP COLUMN exp_field;') as table_name FROM information_schema.TABLES t WHERE t.TABLE_SCHEMA='test2'

 

posted on 2024-03-27 18:46  lewisat  阅读(5)  评论(0编辑  收藏  举报

导航