android如何使用匹配从数据库中选择数据

时间:2013-11-06 08:42:39

标签: android

我从数据库中获取与任何优势相匹配的数据如何在变量的两端添加%?下面是我的查询我想添加'“+ School_name +”'到这个'%“+ School_name +”%'如何做到这一点?

        Cursor mCursor3 = db.selectQuery("SELECT * FROM uss_school sch LEFT JOIN uss_school_to_level sl ON  sch.school_id = sl.school_id LEFT JOIN uss_level l ON sl.level_id = l.level_id WHERE sch.name like '"+School_name+"'");

0 个答案:

没有答案