search a value from sqlite database and retrieve in listview

前端 未结 3 635
一生所求
一生所求 2020-12-05 22:02

How to find the exact data in sqlite database and retrieve it in a listactivity? I tried like this but I didn\'t get the value.

sea         


        
3条回答
  •  半阙折子戏
    2020-12-05 22:50

    try this way

    or

    Cursor cTitle=db.rawQuery("SELECT * FROM "+ Contactsnew.TABLE02 + " WHERE " 
                        + Contactsnew.userid + " = " + GetSet.getUserId() + " AND " + Contactsnew.TITLE +
                         " LIKE  '"+search.getText()+"%'");
    

提交回复
热议问题