How to retrive a specific data from sqlite database

Put your problem here if it does not fit any of the other categories.

How to retrive a specific data from sqlite database

Postby sshah29 » Wed Jul 25, 2012 6:37 am

I tried to create an android app that gets data from server save it for later use when there is no connectivity and use it to perform calculations later. I am getting data from server and able to save it as well but not able get specific data with sqlitedatabase.rawquery("select cons_name from "+DATABASE_TABLE+" where cons_name="+name,null) here name is string value that I am getting as a reference from edittext. Please help or guide me to get specific data from database using distinct option query not rawquery option.

thank you
sshah29
Freshman
Freshman
 
Posts: 2
Joined: Wed Jul 25, 2012 6:24 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 17 guests