Store BigInteger into Mysql

后端 未结 4 622
予麋鹿
予麋鹿 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:45

    MySQL Type      Java Type
    ----------------------------------------
    CHAR            String
    VARCHAR         String
    LONGVARCHAR     String
    NUMERIC         java.math.BigDecimal
    DECIMAL         java.math.BigDecimal
    BIT             boolean
    TINYINT         byte
    SMALLINT        short
    INTEGER         int
    BIGINT          long
    REAL            float
    FLOAT           double
    DOUBLE          double
    BINARY          byte []
    VARBINARY       byte []
    LONGVARBINARY   byte []
    DATE            java.sql.Date
    TIME            java.sql.Time
    TIMESTAMP       java.sql.Tiimestamp
    

    Reference

提交回复
热议问题