Last answered:

30 Mar 2024

Posted on:

29 Mar 2024

0

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)
Instructor
Posted on:

30 Mar 2024

0

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

Submit an answer