SQL中字段类型BIGINT的限制是什么?

ozs*_*gal 13 sql bigint

SQL中字段类型BIGINT的限制是什么?

是100000235882380还是100000466411115?(那是Facebook的ID)

Dan*_*man 33

查看您正在使用的RDBMS的手册.它可能在所有系统中都不相同.

MySQL:https:
//dev.mysql.com/doc/refman/5.7/en/integer-types.html

PostgreSQL:https:
//www.postgresql.org/docs/10/static/datatype-numeric.html

SQL Server(Transact-SQL):https:
//docs.microsoft.com/en-us/sql/t-sql/data-types/int-bigint-smallint-and-tinyint-transact-sql

DB2:http:
//publib.boulder.ibm.com/infocenter/dzichelp/v2r2/index.jsp?topic =/com.ibm.db29.doc.sqlref/db2z_biginteger.htm

  • MySQL,Postgres ......除了*SQL Server之外,还有更多用户使用BIGINT*而不是SQL Server用户. (8认同)
  • 除SQL Server之外,是否还有其他具有BIGINT类型的RDMS?也许是类似的类型,但我认为可以得出结论,OP正在使用SQL Server。 (2认同)

And*_*are 9

是的,根据int,bigint,smallint和tinyint(Transact-SQL):

BIGINT -2^63 (-9,223,372,036,854,775,808) to 2^63-1 (9,223,372,036,854,775,807)