mercredi 8 juillet 2015

SQLIte return last value that contains, but i want THe exact

im trying to use this sqlite to query THE ONLY ONE idlei there

but if i have

idlei = 1

idlei = 180

and search for "1"

it will return me the 180, but i want the 1

   c = sdb.query("marcacao", new String[]{"idlei", "paragrafo", "marcacao"},
            "idlei" + " LIKE ?",
            new String[]{"%" + idlei + "%"},

whats wrong

Aucun commentaire:

Enregistrer un commentaire