Solved

store a mysql value

Posted on 2004-04-07
5
179 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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
Find out what Office 365 Transport Rules are, how they work and their limitations managing Office 365 signatures.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

706 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now