xxxxxxxxxx
#creating table with int values in SQL
CREATE TABLE test.sql_server_integers (
bigint_col bigint,
int_col INT,
smallint_col SMALLINT,
tinyint_col tinyint
);
xxxxxxxxxx
There are 4 differnt SQL int's if thats the question
TinyInt 1 byte (0-255)
SmallInt 2 bytes (big number : -2^15 (-32,768) to 2^15-1 (32,767))
Int 4 bytes (big number : -2^31 (-2,147,483,648) to 2^31-1 (2,147,483,647))
BigInt 8 bytes (big number : -2^63 (-9,223,372,036,854,775,808) to 2^63-1 (9,223,372,036,854,775,807))