android - is something wrong with my query -
cursor cursor = database.query(mysqliteopenhelper.table_mots, allcolumns, mysqliteopenhelper.column_cat + " = ? , " + mysqliteopenhelper.column_mot + " ?", new string[] {cat, c + "%"}, null, null, null, null);
knowing that: -mysqliteopenhelper.table_mots: table name -allcolumns string table columns names -mysqliteopenhelper.column_cat : column name (for condition) -mysqliteopenhelper.column_mot : column name (for condition too)
and knowing sql query want is, example:
select * mots cat = 'jobs' , mot "s%"
Comments
Post a Comment