Solved

store a mysql value

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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

This tutorial shows how to create a greeting card by combining two image layers and a text layer on a PC using a free image editing app.
Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

823 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