Panaplat Forum's Archiver
論壇
›
程式語言
› MySQL取代字串語法 REPLACE
Edward
發表於 2020-5-25 01:46:52
MySQL取代字串語法 REPLACE
UPDATE `mskey` SET `k_date` = REPLACE(`k_date`, '0000-00-00', '2020-03-09') WHERE `k_date` LIKE '0000-00-00';
`mskey`:資料表名稱
`k_date`:欄位名
REPLACE用法:REPLACE(欄位名,取代前的文字,取代後的文字)
頁:
[1]
查看完整版本:
MySQL取代字串語法 REPLACE