Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在创建一个表,如下所示:
create table SomeTable ( LoginTime int, someValue 64bit-int )
如何将第二列定义为 64 位整数?
在 MySQL 中,BIGINT数据类型表示一个 8 字节(64 位)整数。它可以是SIGNED或UNSIGNED允许(或阻止)列中的负数。
BIGINT
SIGNED
UNSIGNED
您可以在此处阅读有关 MySQL 整数数据类型的所有变体的更多信息。列属性在这里讨论。
我假设您使用的是 Sql Server。你想使用一个
bigint - signed 64-bit.