where condition in Database

Problems with WiFi, SQLite ,Bluetooth, WiMax, Proxies, etc...

where condition in Database

Postby tramorgan » Wed Feb 10, 2010 8:34 am

Hello everyone!
I'm trying to do with database in android. i have a select statement like this

String strsql="SELECT _id,Name from table where Name='"Chris"'"; but in android cant write Name="Chris" . Any suggestion for where condition please help

Thanks in advance
tramorgan
Junior Developer
Junior Developer
 
Posts: 13
Joined: Thu Feb 04, 2010 11:25 am

Top

Re: where condition in Database

Postby tramorgan » Wed Feb 10, 2010 9:08 am

tramorgan wrote:Hello everyone!
I'm trying to do with database in android. i have a select statement like this

String strsql="SELECT _id,Name from table where Name='"Chris"'"; but in android cant write Name="Chris" . Any suggestion for where condition please help

Thanks in advance


it works already :)
tramorgan
Junior Developer
Junior Developer
 
Posts: 13
Joined: Thu Feb 04, 2010 11:25 am

Postby pranav09 » Sat Feb 27, 2010 12:46 pm

Hi tramorgan,

For the database example, you can take a look into the below link. It's a nice tutorial to work with database.

www.devx.com/wireless/Article/40842

Regards,
______________
Pranav
User avatar
pranav09
Senior Developer
Senior Developer
 
Posts: 128
Joined: Mon Jan 19, 2009 12:01 pm
Location: Ahmedabad, India

Top

Return to Networking & Database Problems

Who is online

Users browsing this forum: No registered users and 3 guests