LMSouq
database Open

MySql: Tinyint (2) vs tinyint(1) - what is the difference?

RE
realtebo
1 month ago
3 views
Problem Description
I knew boolean in mysql as `tinyint (1)`. Today I see a table with defined an integer like `tinyint(2)`, and also others like `int(4)`, `int(6)` ... What does the size means in field of type integer and tinyint ?

AI-Generated Solution

Powered by LMSouq AI · GPT-4.1-mini

✓ Solution Ready
Analyzing problem and generating solution…
Was this solution helpful?
Back to Knowledge Base