What does INT(11) actually do in MySQL?

preview_player
Показать описание
When creating an integer column in MySQL, what does this number in parenthesis actually do?

📚 Learn more about PlanetScale

——————————————————

💬 Follow PlanetScale on social media
Рекомендации по теме
Комментарии
Автор

For 3 years I have been using it in production thinking it's for the size of the column. Thanks you for clarifying it though ❤

akbhor
Автор

omg... i work with mysql for +20 years and i didnt know that... i suck

toninho
Автор

What's the difference between int(10) and int(11) in mysql?
Thanks in advance

장미김-tc
Автор

i'd rather do the padding on the frontend

atgctg
Автор

does this mean that value is stored as string? 🧵

maga_voter
welcome to shbcf.ru