当前位置:Gxlcms > 数据库问题 > mysql 删除以某字符串开头的表

mysql 删除以某字符串开头的表

时间:2021-07-01 10:21:17 帮助过:113人阅读

Select ‘SET FOREIGN_KEY_CHECKS = 0;‘
union
Select CONCAT( ‘drop table ‘, table_name, ‘;‘ )
FROM information_schema.tables
Where table_name LIKE ‘as_baiqishi%‘
UNION
Select ‘SET FOREIGN_KEY_CHECKS = 1;‘

  不多解释了,复制,执行,ok!

mysql 删除以某字符串开头的表

标签:orm   select   class   ike   开头   ati   tab   sql   删除   

人气教程排行