Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- }public void Actualizar(String id_gasto,String monto,String descripcion,String fecha,String categoria){
- BaseHelper baseHelper = NEW BaseHelper(this,"Gasto02",NULL,1);
- SQLiteDatabase sqLiteDatabase = baseHelper.getWritableDatabase();
- String query = "UPDATE gastos SET monto = '"+monto+"',descripcion = '"+descripcion+"',fecha = '"+fecha+"',categoria = '"+categoria+"' WHERE id_gasto = '"+id_gasto+"'";
- sqLiteDatabase.execSQL(query);
- sqLiteDatabase.close();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement