SQLWays Product Page - Migration to PostgreSQL Free Evaluation

PostgreSQL Data Types - SMALLINT

Versions: PostgreSQL 8.x and 7.x

PostgreSQL - SMALLINT
Syntax SMALLINT
Data 16-bit integer data
Range -32768 to 32767
Storage Size 2 bytes
Synonyms INT2
Standards ANSI SQL

PostgreSQL SMALLINT - Equivalents in Other Databases

Database Data Type and Conversion
Oracle NUMBER(5,0), -105-1 to 105-1
SQL Server SMALLINT, -32768 to 32767
MySQL SMALLINT, Signed: -32768 to 32767, Unsigned: 0 to 65535
Sybase ASE SMALLINT, Signed: -32768 to 32767, Unsigned: 0 to 65535
Informix SMALLINT, -32768 to 32767
HP Neoview SMALLINT, Signed: -32768 to 32767, Unsigned: 0 to 65535

Related Data Types in PostgreSQL

Data Types
Integers BIGINT INT
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:
JQUTZ
 
sqlways/postgresql/data-types/smallint.txt · Last modified: April 25, 2012, 04:46:39 AM (external edit)
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki