Usually when I need an ID for a database table, I just declare it as UNSIGNED INT, but what is the maximum value for this kind of ID? How can I know it? I'm using mysql server, but i think it would be useful to get an answer for all platforms. If I'm doing wrong, what kind of id should be used instead?
Asked
Active
Viewed 938 times
-1
-
Didn't you find the range in the MySQL doc? – juergen d Jan 23 '14 at 14:20
-
Well i COULD do that, but here I also ask for a practical advice. – Ben Jan 23 '14 at 14:22
1 Answers
1
For MySQL max value in UNSIGNED INT, can be stored is 4294967295.
Have a look at Integer Storage in MySQL

Abdul Manaf
- 4,768
- 3
- 27
- 34