sqlite 批量替换
发布网友
发布时间:2022-04-07 22:59
我来回答
共2个回答
热心网友
时间:2022-04-08 00:28
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.
热心网友
时间:2022-04-08 01:46
一样的
UPDATE xxx SET xx=REPLACE(abc, 'aaa', 'bbb')追问SQL logic error or missing database
no such function: REPLACE
没有该函数