The "typical" SQL DBMS supports most of the standard numeric data types, but often uses preferred local names. Here are some lists of local types derived from vendor manuals. The correlation with the leftmost ("Standard") column is sometimes imprecise. "ODBC" is not a DBMS but a spec.

StandardOracleDB2SybaseODBC
SMALLINTNUMBERSMALLINTSMALLINTSMALLINT
INTEGERNUMBERINTEGERINTINTEGER
DECIMALNUMBERDECIMALMONEYDECIMAL
NUMERICNUMBERNUMERICMONEYNUMERIC
REALNUMBERREALFLOATREAL
FLOATNUMBERFLOATFLOATFLOAT
DOUBLE PRECISIONNUMBERDOUBLE PRECISIONFLOATDOUBLE PRECISION

Other commonly-seen numeric data types include TINYINT (8-bit signed integer), BIGINT (64-bit signed integer) and SERIAL (integer that goes up by 1 for each new inserted row).

Note:

Portions of the text in this entry are Copyright © 1999 by Ocelot Computer Services Incorporated. Used by permission.

Comments

Comments loading...