This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JDBC and the fly likes Results Help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Results Help" Watch "Results Help" New topic
Author

Results Help

Josh Batchelor
Greenhorn

Joined: Dec 18, 2001
Posts: 9
Is there a way to set strings and value based on what comes out of the database?
Example:
PHN_NMBR_TYP_NM = Home
PHN_NMBR = 5555555555
String phone_name = rs_pt.getString("PHN_NMBR_TYP_NM");
String phone_number = rs_pt.getString("PHN_NMBR");
So what I want to do is make String Home = 5555555555
Hope that made sense.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Results Help
 
Similar Threads
Moving from Python to Java - list question
Creating Jibx Bindings for Ambiguous XML
Tokenizing
Java Home????
StringTokenizer