Forum

Yampiz Forum

Sharing let knowledge Spreaded, Reading let spirits growth, Creative let culture extended, Let us
  • 禁止廣告文
  • 知識傳播
  • 閱讀
  • 心靈成長
  • 創作
  • 文化傳承
Forum Dictionary / Programming / Database / Mysql /

Mysql 替換指定字串函式

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

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

Mysql 替換指定字串函式:

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

  • Keywords : 欄位名稱, Mysql, 資料表, 資料庫, 設計, 荳號, 沒想到, 本身其實就, 料想好, 整體程式, 尋找字元, 實用, 取代字元, 函式, UPDATE, REPLACE
0 0
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
  • Auto Platform
    For better browsing experience, it will auto detects your device to display webpage.
  • Bug Report
    Tell us about the idea, problem and errors you found.
  • Comodo Secure
    The sensitive data transmission adopts by SSL-2048 authenticated encryption.
  • Copyright
    © 2009 YamPiz Digital Inc. & Jaby Group. All rights reserved.
  • Revised Version
    V2.2.061
    03 Aug 2023 (GMT+8)