dimanche 26 juillet 2015

Android SQLite query for consecutive text?

Is there any sql method for qeurying consecutive texts from database?

for example I want to query just "koma azad" but the query method shows me "koma dengê azad", too.

code:

public Cursor getmatchs(String query, String[] columns) {
    String selection = KEY_WORD + " MATCH ?";
    String[] selectionArgs = new String[]{query};

    return query(selection, selectionArgs, columns);
}

Aucun commentaire:

Enregistrer un commentaire