mysql update select error

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

原文地址:https://www.cnblogs.com/shouwangzhe-/p/4135678.html