Click here to Skip to main content
15,892,537 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I am working with database in android i am able to insert in Table but when i am going for check username and password from table the i am using cursor for return query value thet time my where caluse is notworking i am not getting field value.
Cursor cursor=new Cursor
cur=db.rawquery("select * from tablename where username='"+username variabe +"'",null);

this query allways return all field and i want to return only single row

thank you
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900