Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JDBC and the fly likes problems with double value 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 "problems with double value" Watch "problems with double value" New topic
Author

problems with double value

Jaishankar VV
Greenhorn

Joined: May 13, 2002
Posts: 6
Hi,

I have problem while inserting into a Oracle table from java. I am getting the following error ORA-01438: value larger than specified precision allows for this column

Value = 99999999999999999999999999.99
I have defined the column size as number(28,2). I am using setDouble to set the value. I have also tried using BigDecimal but it resulted in the same error. Any solutions to overcomes this.

Thanks,
V.V.Jaishankar.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: problems with double value
 
Similar Threads
update query wont work in mysql, column name to blame?
Memory allocation
Can I Select column A OR column B ?
JTreeTable - tree of DefaultMutableTreeNodes
Hiding group of rows depending on dropdown list