aspose file tools
The moose likes JDBC and Relational Databases 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 Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
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: 140
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: 140
Ack, never mind, I found it myself


Still-learning Stuart
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 32088

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

[OCA 8 book] [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:, I will help you, and improve my english. Thanks everyone.
I agree. Here's the link:
subject: ints, bigints, longs and strings