UPDATE i18nresource tar INNER JOIN (SELECT substring_index(resourceValue,'Card',1) val,id FROM i18nresource where resourceKey like'%Card') tempON tar.id = temp.idSET tar.resourceValue = temp.val;