第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

sqlite 批量替換?

sqlite 批量替換?

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

1 回答

?
慕森卡

TA貢獻(xiàn)1806條經(jīng)驗(yàn) 獲得超8個(gè)贊

sqlite也是有replace函數(shù)的,你的意圖可以實(shí)現(xiàn):
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.

查看完整回答
反對(duì) 回復(fù) 2018-11-12
  • 1 回答
  • 0 關(guān)注
  • 1681 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)