Solved

store a mysql value

Posted on 2004-04-07
5
185 Views
Last Modified: 2010-04-01
Hi experts, how can I amend this java code to store the idnum in a variable?

ResultSet rs1 = stmt.executeQuery("select idnum from users where name like '" + name + "'" );

Cheers
0
Comment
Question by:Ronayne
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 5

Expert Comment

by:KarcOrigin
ID: 10779889
String var = rs1.getString("idnum");
Thx
0
 

Accepted Solution

by:
Ronayne earned 0 total points
ID: 10780039
That question has been answered for me here:

http://www.experts-exchange.com/Programming/Programming_Languages/Java/Q_20947166.html

Apologies, I should have posted this sooner.
0
 
LVL 5

Expert Comment

by:KarcOrigin
ID: 10780065

:-(

(!!u!!)


0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Gain an elementary understanding of Blockchain technology.
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question