【MYSQL——常用语句】更新字段内容为替换某一部分内容

UPDATE  chapter SET `name` = REPLACE( name, '(原内容)', '替换内容' ) where novel_id = 43 AND `name` LIKE '%(原内容)'

猜你喜欢

转载自blog.csdn.net/choushi300/article/details/84333145
今日推荐