Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JDBC and MySQL

Status
Not open for further replies.

mhburney

Programmer
Jul 26, 2005
23
PK
Hi,

I cant figure out a way to search through a table for a specific value :( using JDBC and mysql..

any helps!

cheers!
 
select * from your table where yourfield=yourvalue?

Cheers,

Dian
 

Okat this is what iam trying but how am i suppose to check the value or the result of this query :(

s.executeQuery ("Select name from device where name='xyz'");

 
I don't think I understand the question. The query returns a ResultSet, then you can iterate through it ang get the data you need.

Cheers,

Dian
 
you mean just use resultset.next until it == somestring.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top