Tente isso
db.query(Produtos.TABELA, new String[] { Produtos.CODIGO }, Produtos.VALOR_UNIT + " = ? and " + Produtos.SEMIJOIA + " = 'S'",
new String[] { precoAux },
null, null,
Produtos.REFERENCIA
);
Em 9 de fevereiro de 2015 17:08, Felipe Aron <felipearon@gmail.com> escreveu:
Galera tenho a seguinte Query:--c = mDb.query(Produtos.TABELA,new String[] { Produtos.CODIGO },Produtos.VALOR_UNIT.concat("=?").concat(" and " + Produtos.SEMIJOIA.concat("='S'")),new String[] { precoAux },null, null,Produtos.REFERENCIA);
Estou usando a condição "=" (igual) ao valor inidicado. Ex.> 21.90Ele não me retorna nada! :(
Mas se usar ">=" ele me retorna os produtos com valor de 21.90 além dos de maior valor.Porque o "=" não funciona nesse caso?--Programador
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.







0 comentários:
Postar um comentário