什么相当于postgresql中的Long数据类型?

Mah*_*leh 51 java postgresql

问候所有我想知道什么相当于postgresql中的Long数据类型,我可以在一个长变量中检索.

Jon*_*eet 78

根据文档,它看起来像是bigint你的朋友,范围为-9223372036854775808至9223372036854775807.


SQL*_*ace 12

应该是一个bigint

bigint 8字节大范围整数-9223372036854775808至9223372036854775807

从这里:http://www.postgresql.org/docs/current/interactive/datatype-numeric.html

  • @ sword101:postgresql中的bigint应该使用getLong()方法从ResultSet中提取 - 而不是getBigDecimal()."bigint"不是java类型,"long"不是postgresql类型,所以你刚才所说的并没有多大意义. (4认同)