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 ints, bigints, longs and strings Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "ints, bigints, longs and strings" Watch "ints, bigints, longs and strings" New topic
Author

ints, bigints, longs and strings

Stuart Rogers
Ranch Hand

Joined: Oct 02, 2008
Posts: 137
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




TIA,

Still-learning Stuart
Stuart Rogers
Ranch Hand

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



Thanks,

Still-learning Stuart
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30382
    
150

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
Greenhorn

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.
 
jQuery in Action, 2nd edition
 
subject: ints, bigints, longs and strings