0% found this document useful (0 votes)
39 views1 page

SQL DataTypes

Bigint, int, smallint, tinyint, decimal, numeric, float are numeric data types that store numbers with different ranges and storage sizes - bigint and numeric require 8 bytes of storage while tinyint requires only 1 byte. Date, time, timestamp, varchar, nvarchar store date, time, text, and character values with storage sizes ranging from 1 to 8000 bytes depending on the specific data type used.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views1 page

SQL DataTypes

Bigint, int, smallint, tinyint, decimal, numeric, float are numeric data types that store numbers with different ranges and storage sizes - bigint and numeric require 8 bytes of storage while tinyint requires only 1 byte. Date, time, timestamp, varchar, nvarchar store date, time, text, and character values with storage sizes ranging from 1 to 8000 bytes depending on the specific data type used.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Data type

Bigint Int Smallint Tinyint decimal and numeric float

Range
-2^63 to 2^63 1 -2^31 to 3^31 1 -2^15 to 2^15 -1 0 to 255

Storage
8 Bytes 4 Bytes 2 Bytes 1 Byte 5 byte to 17 Byte

if 1<=n<=24 If 25<=n<=53

4 bytes 8 Bytes 3 Bytes 5 bytes 8 Byte

Date Time Timestamp varchar [ ( n | max ) ] for n for max for n for max for n for max

1 to 8000 bytes up to 2 GB 1 to 4000 bytes up to 2 GB 1 to 8000 bytes up to 4 GB

nvarchar [ ( n | max ) ]

varbinary [ ( n | max) ]

You might also like