Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

assigning a java variable to a table value

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1879
MySQL Database Suse
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic