1
選擇的是正常工作:撇號SQLite中選擇
selection: title LIKE '% Z %' OR title LIKE 'Z %' OR title LIKE '% Z'
我的應用程序崩潰,如果分貝選擇containes撇號:
登錄:
android.database.sqlite.SQLiteException: unrecognized token: "'% ''": ,
while compiling: SELECT _id, title FROM table_name WHERE title LIKE '% ' %'
OR title LIKE '' %' OR title LIKE '% ''
OR:
android.database.sqlite.SQLiteException: near "ZCUU": syntax error: ,
while compiling: SELECT _id, title FROM laws WHERE title LIKE '% ZCUU' %'
OR title LIKE 'ZCUU' %' OR title LIKE '% ZCUU''
誰知道如何o插入撇號以正確搜索選擇?謝謝!
哦,這很有用。謝謝! – Sinigami