wood burning stoves 2.0*
The moose likes JDBC and the fly likes ints, bigints, longs and strings Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "ints, bigints, longs and strings" Watch "ints, bigints, longs and strings" New topic

ints, bigints, longs and strings

Stuart Rogers
Ranch Hand

Joined: Oct 02, 2008
Posts: 133
I'm rewriting some code that worked great when the database tables' columns were defined as INTs

How should I rewrite the above snippet now that the database tables' columns are defined as BIGINTs? This does not work


Still-learning Stuart
Stuart Rogers
Ranch Hand

Joined: Oct 02, 2008
Posts: 133
Ack, never mind, I found it myself


Still-learning Stuart
Jeanne Boyarsky
internet detective

Joined: May 26, 2003
Posts: 30138

Thanks for posting the solution for others who encounter the problem.

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Lei Guoguo

Joined: Mar 31, 2009
Posts: 26
you can try String.valueOf();

I'm a chinese, my english is so bad, I need help. If you want to help me, you can send your question to my e-mail: lgg860911@yahoo.com.cn, I will help you, and improve my english. Thanks everyone.
I agree. Here's the link: http://aspose.com/file-tools
subject: ints, bigints, longs and strings
Similar Threads
2 Quick simple JavaScript Qu's. Plz Help
To identify Primary Keys in a table
Hibernate Metadata Search
String's no-arg Constructor
how to store object in "ms access database" through java?