mercredi 26 novembre 2014

Is this way of fetching data from sqlite correct?


Vote count:

0





> I am using this query to fetch data from sqlite but only one condition is working but not two at same time. I am also getting some notification that no such column but it exist.


String lquery = "SELECT SUM(totalcalorie) AS LTotal FROM fooditem WHERE name = ('"+fname+"') AND foodtype = 'Lunch'";



asked 50 secs ago







Is this way of fetching data from sqlite correct?

Aucun commentaire:

Enregistrer un commentaire