cant use like clause in android app

后端 未结 7 777
萌比男神i
萌比男神i 2020-12-07 01:23

I am working on a database with sqllite in an android app I want to retrieve sm data using a like clause ex:

Cursor c = myDB.query(MY_DATABASE_TABLE, null,          


        
7条回答
  •  既然无缘
    2020-12-07 01:49

    hi Are you getting any exception while executing the above query. Try by removing the "=" symbol infront of the question mark in the like condition. Else try using

    db.rawQuery(sql, selectionArgs)
    

提交回复
热议问题