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;

posted @ 2014-12-01 18:02  廖东海  阅读(192)  评论(0编辑  收藏  举报