Reputation: 127
I am trying to create a user table this way:
But I am getting this error:
This is not a number
What am I doing wrong?
Upvotes: 10
Views: 18178
Reputation: 281
You need to provide the VARCHAR length (the number of characters). The length should be a numeric value. then you can get rid of the error.
Upvotes: 9
Reputation: 10716
You're trying to create a primary key that can store an integer of length 40
.
Consult this table:
Type | Use | Size
As a result, PhpMyAdmin won't create the field as it exceeds the maximum allowed length for that type (INT).
http://help.scibit.com/mascon/masconMySQL_Field_Types.html
Upvotes: 4
Reputation: 234
INT type have 4 bytes storage capacity so you can only give max lenght of 11.
Check this for more details
Upvotes: 4