0% found this document useful (0 votes)
14 views

DATA TYPE in Assembly Language

This document describes common SQL data types including their size, possible value ranges, and purpose. It lists integer types like INT and BIGINT for standard integer values, numeric types like DECIMAL and FLOAT for fixed-point and floating-point numbers, character string types like VARCHAR and TEXT for storing text, date/time types for dates and times, and other types like BOOLEAN for true/false values and BLOB for binary data.

Uploaded by

farman7757854
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

DATA TYPE in Assembly Language

This document describes common SQL data types including their size, possible value ranges, and purpose. It lists integer types like INT and BIGINT for standard integer values, numeric types like DECIMAL and FLOAT for fixed-point and floating-point numbers, character string types like VARCHAR and TEXT for storing text, date/time types for dates and times, and other types like BOOLEAN for true/false values and BLOB for binary data.

Uploaded by

farman7757854
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

DATA TYPE Size RANGES PURPOSE OF DATATYPE

INT 4 bytes -2,147,483,648 to 2,147,483,647 Integer values


SMALLINT 2 bytes -32,768 to 32,767 Small integer values
-9,223,372,036,854,775,808 to
BIGINT 8 bytes 9,223,372,036,854,775,807 Large integer values
Depends on Fixed-point number with user-
DECIMAL precision Depends on precision specified precision
Depends on Exact numeric values with user-
NUMERIC precision Depends on precision specified precision
-1.79E+308 to -2.23E-308, 0 and 2.23E-308
FLOAT 8 bytes to 1.79E+308 Floating-point number
Single-precision floating-point
REAL 4 bytes -3.40E+38 to 3.40E+38 number
Double-precision floating-point
DOUBLE 8 bytes -1.79E+308 to 1.79E+308 number
CHAR Up to 8,000 bytes Up to 8,000 characters Fixed-length character string
VARCHAR Up to 8,000 bytes Up to 8,000 characters Variable-length character string
Up to 2^31 - 1 Variable-length character string
TEXT bytes (2 GB) Up to 2^31 - 1 characters with maximum size
DATE 3 bytes January 1, 1753, to December 31, 9999 Date values
00:00:00.0000000 through
TIME 3 to 5 bytes 23:59:59.9999999 Time values
January 1, 1753, through December 31,
DATETIME 8 bytes 9999 Date and time values
January 1, 1970, through December 31,
TIMESTAMP 8 bytes 9999 Date and time values (UTC)
BOOLEAN 1 byte True or False Boolean values
BLOB Varies Varies Binary large object
BINARY Up to 8,000 bytes Up to 8,000 bytes Fixed-length binary string
VARBINARY Up to 8,000 bytes Up to 8,000 bytes Variable-length binary string
BIT 1 bit 0 or 1 Binary data (0 or 1)

You might also like