0

What's the best data type for storing numeric values (like 1656659676159881372) in MariaDB?

0

1 Answer 1

2

Take a look at DECIMAL datatype for these values.

The maximum number of digits for DECIMAL is 65.

If you need numbers in the range of -9223372036854775808 to 9223372036854775808, you could use bigint instead. Likewise, if you only need numbers in the range of -2147483648 to 2147483648, you could use a standard int datatype.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.