1、需求:用sql在"/file"前面加一个 域名,并且要排除已经包含域名的数据 2、sql语句 UPDATE t_manage_agreement_file SET file = CONCAT( SUBSTRING_INDEX( file, '/file', 1 ), 'http://pim.shu.edu.cn/file', SUBSTRING_INDEX( file, '/file',- 1 )) WHERE file NOT LIKE '%xxxxx%'