可以直接使用BigInteger类型进行接收,
BigInteger id = (BigInteger)QueryRunner(conn,"SELECT LAST_INSERT_ID",new Scala)
java.math.BigInteger cannot be cast to java.lang.Integer
java.math.BigInteger cannot be cast to java.lang.Long
时间: 2024-11-08 11:40:00
可以直接使用BigInteger类型进行接收,
BigInteger id = (BigInteger)QueryRunner(conn,"SELECT LAST_INSERT_ID",new Scala)