MySQL的replace函數的用法


  REPLACE(field,find_str,replace_str): 字段field的內容中的 find_str 將被 替換為 replace_str
  例如:
    
    update short_url set long_url=replace(long_url,'https://creditcardapp.bankcomm.com/content/dam/phone/faka/mgm/mdx/game/index.html?telecom_id=smsa&commercial_id=','https://creditcardapp.bankcomm.com/applynew/front/apply/new/mdx/index.html?telecom_id=sccc&commercial_id=');

如果您閱讀過此文章有所收獲,請為我頂一個,如果文章中有錯誤的地方,歡迎指出。

相互學習,共同進步!

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM