File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes assigning a java variable to a table value Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "assigning a java variable to a table value" Watch "assigning a java variable to a table value" New topic
Author

assigning a java variable to a table value

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
How do I take a value from a database table and make it into a java string or int?
For example I want to look at the amount column in the BILL table WHERE payid = xxx and make it into a string or int so that I can then use it in my Java program ?
Any help or example of code would be helpful
Thanks
Jamie Robertson
Ranch Hand

Joined: Jul 09, 2001
Posts: 1879

http://java.sun.com/docs/books/tutorial/jdbc/basics/retrieving.html
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: assigning a java variable to a table value