亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

sqlite 批量替換?

sqlite 批量替換?

iOS
白豬掌柜的 2018-10-11 15:11:37
sqlite 有批量替換的語法么 類似mysql的update `xxx` set `xx`=REPLACE(`abc`, 'aaa', 'bbb');謝謝?。∧壳霸趕ql語氣中用 php函數str_replace()來暫時解決了,看看有沒有sqlite內置函數有沒有REPLACE,語法如何寫
查看完整描述

1 回答

?
慕森卡

TA貢獻1806條經驗 獲得超8個贊

sqlite也是有replace函數的,你的意圖可以實現:
replace(X,Y,Z)
The replace(X,Y,Z) function returns a string formed by substituting string Z for every occurrence of string Y in string X. The BINARY collating sequence is used for comparisons. If Y is an empty string then return X unchanged. If Z is not initially a string, it is cast to a UTF-8 string prior to processing.

查看完整回答
反對 回復 2018-11-12
  • 1 回答
  • 0 關注
  • 1685 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號