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
Solved

store a mysql value

Posted on 2004-04-07
5
183 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
  • 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Most MSPs worth their salt are already offering cybersecurity to their customers. But cybersecurity as a service is wide encompassing and can mean many things.  So where are MSPs falling in this spectrum?
Many businesses neglect disaster recovery and treat it as an after-thought. I can tell you first hand that data will be lost, hard drives die, servers will be hacked, and careless (or malicious) employees can ruin your data.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

860 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