SQL Server data type corresponding to the data type of .Net Core

SQL C # bigint (sql Size: 8byte) long (64 bit) int, integer (sql Size: 4byte) int (32 bit) smallint (sql Size: 2byte) short (16 bit) tinyint (sql Size: 1byte) byte (8 bit) Note: use exact numeric data type of integer data. bigint Integer data from -2 ^ 63 (-9223372036854775808) to 2 ^ 63-1 (9223372036854775807) (all numbers). The storage size is 8 bytes. int from -2 ^ 31 (2,147,483,648) to 2 ^ 31--1 (2,147,483,647) integer data (all numbers). Storage size is 4 bytes. int synonyms of SQL-92 is integer. smallint from -2 ^ 15 (-32,768) through 2 ^ 15 - Intergral data 1 (32,767) of. Storage size is 2 bytes. tinyint Integer data from 0 to 255. Storage size is 1 byte.

Guess you like

Origin www.cnblogs.com/gloryhope/p/11734071.html