SQL语句:
SELECT
CONCAT(
‘ALTER TABLE ‘,
table_name,
‘ RENAME TO db_‘,
substring(table_name, 4),
‘;‘
)
FROM
information_schema. TABLES
WHERE
table_name LIKE ‘ct%‘;
原文地址:https://www.cnblogs.com/lty-fly/p/11687354.html
时间: 2024-10-06 00:53:36