Android模糊查询

 Cursor c = db.query("bus_line",null,"linename LIKE ?",new String[]{"%616%"},null,null,null);

在SqliteStudio里面的模糊查询必须在两个%两边加上单引号,但是在程序中写的时候在占位符?的两边是不能加上任何引号的。

-----------------------------------------------------

Github:

https://github.com/RainFool
原文地址:https://www.cnblogs.com/RainFool/p/4421024.html