我无法在 sqlite 中插入撇号字符。我试过这种方式,论坛上很多人说的是用“''”替换“'”
String replace=replaceString.replace("'"," ''") but after using this method too gives insert error.
最佳答案
我喜欢用
String replace = replaceString.replace("'","\'");
这会将撇号插入到表中。
关于android - 在 sqlite 错误中插入撇号值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9401777/