Dictionary / Programming / Database / Mysql /

Mysql 替換指定字串函式

New Subject
Random
Previous
Next
|
    Mysql 替換指定字串函式

    ???呼~沒想到自己設計的資料庫還是有沒有料想好的一天,為了整體程式的需要,資料庫裡特定欄位裡的荳號 [,] 都要全部換成小數點 [.],自從以前發現 Mysql 本身其實就有很多很實用的函式之後就不再傻傻的自己寫替代函式囉。

    Mysql 替換指定字串函式:

    UPDATE `資料表` SET 欄位名稱=REPLACE(欄位名稱, '尋找字元', '取代字元');

    • Keywords : Mysql, 資料庫裡特定欄位裡, 要全部換成小數點, 自從以前發現, 本身其實就, 替換指定字串函式, 後就不再傻傻, 寫替代函式囉, UPDATE, REPLACE
    00
    2008-12-16T14:16:12+0000


    • Now, you can post comments by Facebook Account when your Yampiz account was logout or unvariable. whatever, we suggest to post comment by Yampiz Account to get more bounds to join new events of Heyxu
    Comment
     
    Verify
    Comment