INt (size), What does it mean?
What does INT(size) mean in my sql, and is it necessary to include size in brackets after INT. Its pretty confusing. Can you please explain in an comprehensible way. Thanks.
1 answers ( 0 marked as helpful)
Hi Muhammad!
Thanks for reaching out.
In MySQL, INT(size)
is used to store integers with a specified display width. However, it's optional to include the size in brackets. You can simply use INT
without specifying a size, and it will work the same way. It is even advisable to do so, as some versions throw a warning message when defining a size. So, usuing only INT
will work smoothly.
Hope this helps.
Best,
Tsvetelin