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