Home > database >  About the oracle number data conversion
About the oracle number data conversion

Time:09-28

From the database take a Count function of statistical value

In the code to switch to an Integer type

Integer. ParseInt ((String) map. Get (" ID_ "))

To quote the error: Java. Math. BigDecimal always be cast to Java. Lang. String



The solution:

Object ob=map. Get (" ID_ ");

Integer. The parseInt (ob. ToString ());

Best -- -- -- -- -- - in fact database system with varchar2 except date

CodePudding user response:



PS: record on his blog, and more easy to find later;

CodePudding user response:

This is a Java problem?
  • Related