Data Types Flashcards
Foreign key
FK
Primary key
PK
Fixed-length character data, 1 to 255 characters
CHAR
Variable-length character data, 1 to 2,000 characters. VARCHAR is automatically converted to VARCHAR2 in Oracle.
VARCHAR
Numeric data. NUMBER(9,2) is used to specify numbers that have two decimal places and are up to nine digits long, including the decimal places. Some RDBMSs permit the use of a MONEY or a CURRENCY data type.
NUMBER
Numeric data. DBMSs that do not support the NUMBER data type typically use NUMERIC instead.
NUMERIC
Integer values only. INT is automatically converted to NUMBER in Oracle.
INT
Small integer values only. SMALLINT is automatically converted to NUMBER in Oracle.
SMALLINT
DATE formats
DD-MON-YYYY, DD-MON-YY, MM/DD/YYYY, and MM/DD/YY