mysqlintegerdatafield

If I leave length/values field of integer type blank in MySQL how much length of data can it store?


When creating a table we normally make id field of integer type. But if I don't specify any value in length field how much length data will it store?


Solution

  • Juhana thanks for your link and answer. I got it. Length is for displaying how many characters will be shown and not how much data can be stored. So if I say integer type length is 3 then id will display upto 999 but will store values beyond that. I hope I got it right.