aspose 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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 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




TIA,

Still-learning Stuart
Stuart Rogers
Ranch Hand

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



Thanks,

Still-learning Stuart
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29240
    
139

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ints, bigints, longs and strings
 
Similar Threads
String's no-arg Constructor
2 Quick simple JavaScript Qu's. Plz Help
Hibernate Metadata Search
how to store object in "ms access database" through java?
To identify Primary Keys in a table