how to search sqlite database using regular expression in android?

前端 未结 2 850
既然无缘
既然无缘 2020-12-21 09:49

I am trying to search a database using regular expression in sqlite. Here is my code:

cursor = db.rawQuery(\"SELECT _id, employee FROM employees WHERE employ         


        
2条回答
  •  隐瞒了意图╮
    2020-12-21 10:08

    As James suggested, use the LIKE operator, and then do a java search on the results using regular expressions

提交回复
热议问题