What is equivalent of Long data type in PostgreSQL?

JavaPostgresql

Java Problem Overview


I want to know what's the equivalent of Long data type in PostgreSQL?

Java Solutions


Solution 1 - Java

According to the docs it looks like bigint is your friend, with a range of -9223372036854775808 to 9223372036854775807.

Solution 2 - Java

Should be a bigint

bigint 8 bytes large-range integer -9223372036854775808 to 9223372036854775807

From here: http://www.postgresql.org/docs/current/interactive/datatype-numeric.html

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionMahmoud SalehView Question on Stackoverflow
Solution 1 - JavaJon SkeetView Answer on Stackoverflow
Solution 2 - JavaSQLMenaceView Answer on Stackoverflow