I have connected Java program to Oracle database using JDBC. I want to store BigInteger values(512 bits) in the database. What should be the type of the column?
BigInteger
you can try this way:
oracle.sql.NUMBER numberValue = new oracle.sql.NUMBER(bigIntegerValue); cs.setObject(id, numberValue, OracleTypes.NUMBER);
where bigIntegerValue is an instance of java.math.BigInteger, it works for me
bigIntegerValue
java.math.BigInteger