我有一张table叫 posts 和列 content .我要更改 content 包含<a href to<a id=“links”href的列我该怎么做?
posts
content
8fsztsew1#
你可以用 REPLACE() 功能:
REPLACE()
UPDATE posts SET content = REPLACE(content, '<a href', '<a id="links" href') WHERE content LIKE '%<a href%'
1条答案
按热度按时间8fsztsew1#
你可以用
REPLACE()
功能: