从information_schema.table拼出来rename语句  然后一起执行

解决方案 »

  1.   

    编写存储过程读取information_schema.tables表,读取所有的表名组成alter table xx rename 语句,动态执行即可
      

  2.   

    show tables;得到表名,然后把复制到EXCEL中,通过公式生成 alter table name ...之类的SQL语句,然后一次性复制到命令行工具中执行。