SQLWays Product Page - Migration to PostgreSQL Free Evaluation

PostgreSQL Data Types - INT

Versions: PostgreSQL 8.x and 7.x

PostgreSQL - INT
Syntax INT
Data 32-bit integer data
Range -231 to 231-1 (2G)
Storage Size 4 bytes
Synonyms INTEGER, INT4
Standards ANSI SQL

PostgreSQL INT - Equivalents in Other Databases

Database Data Type and Conversion
Oracle NUMBER(10,0), -1010-1 to 1010-1
SQL Server INT, -231 to 231-1 (2G)
MySQL INT, Signed: -231 to 231-1 (2G), Unsigned: 0 to 232-1 (4G)
Sybase ASE INT, Signed: -231 to 231-1 (2G), Unsigned: 0 to 232-1 (4G)
Informix INT, -231 to 231-1 (2G)
HP Neoview INT, Signed: -231 to 231-1 (2G), Unsigned: 0 to 232-1 (4G)

Related Data Types in PostgreSQL

Data Types
Integers BIGINT SMALLINT
Auto-increment integers SERIAL BIGSERIAL
Fixed-point DECIMAL(p,s) NUMERIC(p,s)
Floating-point FLOAT(p) REAL DOUBLE PRECISION

All Data Types

Oracle SQL Server IBM DB2 MySQL PostgreSQL Sybase ASE Sybase ASA Informix DS Teradata HP Neoview Interbase/Firebird


SQLWays Product Page - Migration to PostgreSQL Free Evaluation

Discussion

Enter your comment:
LAMKI
 
sqlways/postgresql/data-types/int.txt · Last modified: April 25, 2012, 04:46:37 AM (external edit)
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki