SQL替换语句
SQL替换语句
update 表 set 字段=REPLACE(字段,’kwkj’,'zgkw’)
说明:
说明:
字段后夫”kwkj”为需替换的字串,”zgkw”为替换后的字串。
执行后字段里凡是包括kwkj的字符串,就都替换成了zgkw
一般适用于数据中的url整体替换的时候,(省了不少时间哦!)
update wp_posts set post_content=REPLACE(post_content,’www.751comcom.cn’,'con6.cn’)
Tags: SQL
This entry was posted on Monday, November 17th, 2008 at 10:33 pm and is filed under 五月天. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.