how to store BigInteger values in oracle database

后端 未结 4 1272

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?

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-13 12:59

    I'm not answering directly your question, but i only see one oracle datatype that can store a 512 bits number : varchar2(156) (156 = abs(log(2^512))+2)

    So i would rather convert the biginteger to a string rather than a bigdecimal.

提交回复
热议问题