- Accepts character strings (generously cast or not statically typed)
- Use
int64
The SQL type bigint is typically no shorter than a 64 big signed integer (-9223372036854775808 to 9223372036854775807).
CREATE TABLE table_name (
column_name BIGINT
)Note that the SQL language has no unsigned modifier (see: domain, check).
Related
Bigintin other places:casttarget.Other integer types:
smallint,integer/intRestricting the value range (e.g. unsigned):
domain,checkSQL types for decimal numbers:
numeric,decimal,decfloatNumeric types with approximate arithmetic:
float,real,double precisionProduct specific integer types:
tinyint,mediumint,int2,int4,int8,int64,unsigned,signed
Normative References
The type bigint is defined in ISO/IEC 9075-2:2023 (T071, “BIGINT data type”) with an implementation defined precision.0 The corresponding data type of the C programming language is long long,1 which corresponds to the above mentioned value range.2

