Store BigInteger into Mysql

后端 未结 4 693
予麋鹿
予麋鹿 2021-01-19 08:21

Due to mathematica constraints I\'ve to use the BigInteger class to represent values.

After some calculations I would like to store the result (given by 2x BigIntege

4条回答
  •  北荒
    北荒 (楼主)
    2021-01-19 08:43

    I would recommend using a Blob and then the BigInteger(byte[] val) constructor to go from byte array to BigInteger, and the BigInteger#toByteArray() method for the other way.

提交回复
热议问题