1
I have a database that has two tables, being them EstoqueDBQ
and FilaDBQ
, I need to create the following logic.
If the value exists in the table Filadbq and in the EstoqueDBQ, this value should be deleted from Filadbq, thought to use the code below, but I’m having trouble adapting.
String sql = "SELECT UM FROM FilaDBQ [.....]";
Cursor data = database.rawQuery(sql, null);
if (cursor.moveToFirst()) {
Se é verdade, apagar o valor na tabela FilaDBQ
} else {
Se não, nada acontece.
}