Whats the size of an SQL Int(N)?

前端 未结 1 1393
夕颜
夕颜 2020-12-18 18:04

Simple question. I have tried searching on Google and after about 6 searches, I figured it would be faster here.

How big is an int in SQL?

-- table c         


        
相关标签:
1条回答
  • 2020-12-18 18:21

    It depends on the database. MySQL has an extension where INT(N) means an INT with a display width of 4 decimal digits. This information is maintained in the metadata.

    The INT itself is still 4 bytes, and values 10000 and greater can be stored (and probably displayed, but this depends how the application uses the result set).

    0 讨论(0)
提交回复
热议问题