Whether it is possible to select in query query by a double condition, type - "login =? AND password =?" and how correctly to transfer selectionArgs? The construction of the form String [] [] does not work.

db.query("users", null, "login = ?", new String[] {login.toString()}, null, null, "last_visit DESC", "1") 

    1 answer 1

     db.query("users", null, "login = ? and password = ?", new String[] {login.toString(), password.toString()}, null, null, "last_visit DESC", "1")).moveToFirst()); 
    • outran) - Yura Ivanov