SELECT
CONCAT(
'ALTER TABLE ',
table_name,
' RENAME TO xmxy_',
substring(table_name, 5),
';'
)
FROM
information_schema. TABLES
WHERE
table_name LIKE 'xmxy%';
批量修改表前缀的sql语句
猜你喜欢
转载自blog.csdn.net/liuhongwei_study/article/details/87071091
今日推荐
周排行