0
안드로이드 2.2와 sqlite 3.7.4를 사용하는 방법? 모든 검색어는 android 2.2에서는 작동하지 않지만 벌집, ICS에서는 작동합니다. 도와주세요. 나는 테이블을 fts3 사용하고안드로이드 2.2와 Sqlite 3.7.4
select snippet(content,'<b>','</b>','...',-1) as mytext,docid as _id from content where text match 'book*'"
public Cursor getSearchResult(String str) {
String query = new StringBuilder().append("select snippet(content,'<b>','</b>','...',-1) as mytext,docid as _id from content where").append(" text match '").append(str).append("*'").toString();
return database.rawQuery(query, null);
}
:
이 내 쿼리입니다.
로그 : ICS에
android.database.sqlite.SQLiteException: SQL logic error or missing database
이 쿼리 작동합니다.
"모든 검색어가 android 2.2에서 작동하지 않습니다"라는 의미는 무엇입니까? – wtsang02
@ wtsang02 내 질문을 편집했습니다. 이해합니까? –
사실 우리는 어떻게 테이블이 어떻게 생겼는지,이 쿼리를 사용하기 위해 코드를 어떻게 작성했는지 모르기 때문에 코드를 추가하십시오. – wtsang02