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.
- 1 回答
- 0 關注
- 1685 瀏覽
添加回答
舉報
0/150
提交
取消