Zi 字媒體
2017-07-25T20:27:27+00:00
MYSQL 特定欄位 字串 替換 [REPLACE]
資料來源: https://caloskao.org/mysql-字串取代與連接-replace、concat/
//用途 更新SEO作弊程式資料
//測試搜尋條件用
SELECT * FROM `all` WHERE `url` LIKE 'http://www.google.com%';
//實際更新資料用
UPDATE `all` SET `url` = REPLACE(`url`, 'http://www.google.com/', 'https://www.google.com/') WHERE `url` LIKE 'http://www.google.com%';
寫了
5860316篇文章,獲得
23313次喜歡