Home / Companies / PlanetScale / Blog / Post Details
Content Deep Dive

MySQL Integers: INT, BIGINT, and more

Blog post from PlanetScale

Post Details
Company
Date Published
Author
Brian Morrison II
Word Count
932
Company Posts That Month
9
Language
English
Hacker News Points
-
Post removed?
No
Summary

MySQL offers various integer types, including INT, BIGINT, MEDIUMINT, SMALLINT, and TINYINT, each with its own range of numbers. The INT type can store up to 4,294,967,296 values, but MySQL also has a signed 32-bit value with 31 bits for the actual number and one bit for the sign. This allows it to store negative numbers by default unless otherwise specified. MySQL also permits using UNSIGNED keyword when creating a column, which tells the database engine that all values should be positive. The choice of integer type depends on whether you need to store negative numbers or how large the numbers are.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.