删除以某字符串开头的表

SELECT CONCAT('drop table ', table_name, ';')
FROM information_schema. TABLES
WHERE table_name LIKE 'xxx_%';

猜你喜欢

转载自www.cnblogs.com/ww25/p/12753919.html
今日推荐