Skip to main content

Data Types

Common list of datatypes used in a variaty of applications and databases. s

Fabric TypeData TypeDescriptionExample
STRINGvarcharVariable-length string; max length specified with varchar(x).varchar(50) - "Hello"
STRINGnvarcharUnicode string for international text; max length specified with nvarchar(x).nvarchar(50) - ""
INTEGERintInteger for whole numbers.int - 42
BIGINTbigintLarge integer for values exceeding int capacity.bigint - 922337203685
INTEGERsmallintSmaller integer than int, saving space for smaller ranges.smallint - 32767
INTEGERtinyintVery small integer, ranging from 0 to 255.tinyint - 200
BOOLEANbitBoolean type; 1 for true, 0 for false.bit - 0/1 (false/true)
DECIMALdecimalFixed-precision and scale numeric; good for precise values like currency. Defined as decimal(p, s), where p is the total number of digits, and s isSTRINGthe number of digits after the decimal.
DATEdateStores date without time.date - 2023-10-28
TIMESTAMPdatetimeStores both date and time values; often used for timestamps.datetime - 2023-10-28 14:00:00
TIMESTAMPtimeStores time without date.time - 14:00:00
FLOATreal
FLOATfloat
FLOATdouble

See for fabric datatypes this page: Fabric datatypes