How can I define a column as 64bit integer using SQL
28,607
Solution 1
In MySQL, the BIGINT
datatype represents an 8 byte (64-bit) integer. It can be SIGNED
or UNSIGNED
which permits (or prevents) negative numbers in the column.
You can read more about all variants of MySQL integer data types here. The column attributes are discussed here.
Solution 2
I assume you are using Sql Server. You want to use a
bigint - signed 64-bit.
Related videos on Youtube
Author by
speedmancs
Updated on July 18, 2022Comments
-
speedmancs almost 2 years
I'm creating a table as following:
create table SomeTable ( LoginTime int, someValue 64bit-int )
How can I define the second column as 64bit integer?
-
marc_s about 12 yearsWhat database system, and which version?? SQL is just the Structured Query Language - a language used by many database systems - SQL is NOT a database product... stuff like this is very often vendor-specific - so we really need to know what database system you're using....
-
-
speedmancs about 12 yearsi'm using mysql indeed, is bigint ok for mysql?
-
Valamas about 12 yearsYes (10 more characters to go)
-
milahu about 2 years
BIGINT UNSIGNED
orBIGINT SIGNED