SELECT
CONCAT(
'ALTER TABLE ',
table_name,
' RENAME TO xmxy_',
substring(table_name, 5),
';'
)
FROM
information_schema. TABLES
WHERE
table_name LIKE 'xmxy%';
SELECT
CONCAT(
'ALTER TABLE ',
table_name,
' RENAME TO xmxy_',
substring(table_name, 5),
';'
)
FROM
information_schema. TABLES
WHERE
table_name LIKE 'xmxy%';