I'm developing in Android (SQLite) but I think this is a Java issue. I want to update a Table, TABLE_GASTOS, my WHERE clause is "(col_MES+" =? AND " +col_ANO+"=?")" and the problem is on the args.
db.update(TABLE_GASTOS, values, (col_MES+" =? AND " +col_ANO+"=?"), args);
How can I do something like (have an array of diferent types of objects):
**String[] args = new String[]{gasto.getMes(),gasto.getAno()};**
If gasto.getAno returns an Integer.
gasto.getMes returns a String.
in order that my last argument on db.update be args.
Aucun commentaire:
Enregistrer un commentaire