0
有谁知道如何从所有评论中替换“comment_author_url”字段?phpMyAdmin中的等效星号(*)是什么?
UPDATE `comments`
SET `comment_author_url` = REPLACE(`comment_author_url`, 'http://*.com','http://new.com')
有谁知道如何从所有评论中替换“comment_author_url”字段?phpMyAdmin中的等效星号(*)是什么?
UPDATE `comments`
SET `comment_author_url` = REPLACE(`comment_author_url`, 'http://*.com','http://new.com')
百分比符号(通配符运算符)%是您所追求的。 Ps。 '星'被称为'星号'。 :)
By asiskisk;)我的意思是找到所有字符串old1.com,old2.com older3.com,并用一个new.com替换 – 2012-01-08 15:19:24
@NikiDrfgheha您将使用'http://%。com'来获取所有内容与'http://'和'.com'两边。 – Kieran 2012-01-08 15:27:01