
--替换url
SELECT 
    TABLE_SCHEMA AS database_name,
    TABLE_NAME AS table_name,
		 COLUMN_NAME,
		 CONCAT('UPDATE ',table_name,' SET ',COLUMN_NAME,' = REPLACE(',COLUMN_NAME,', \'https://mh.shhuanmeng.com\', \'https://image.zfunbox.cn\')
WHERE ',COLUMN_NAME,' LIKE \'https://mh.shhuanmeng.com%\';')
FROM 
    information_schema.COLUMNS
WHERE 
    COLUMN_NAME like 'imgurl%';
    AND TABLE_SCHEMA like 'manghe';