且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在MySQL中,如何在数据库中批量重命名表?

更新时间:2023-02-03 21:40:59

SELECT  concat ('rename table ',table_name,' to ',table_name,'_old;')
FROM information_schema.tables
WHERE table_name like 'webform%'
  and table_schema='weiss_db_new'

将起作用.