Steven
Steven

Reputation: 25304

What's the Maximum Value of smallint(6) unsigned in MySQL?

What's the maximum value of smallint(6) unsigned in MySQL?

Upvotes: 30

Views: 45983

Answers (2)

longneck
longneck

Reputation: 12226

According to official MySQL documentation, the maximum value of an unsigned smallint is 65535.

The (6) portion has no effect on the allowed range of the column; it only affects the display of the column in the MySQL command line interface.

Upvotes: 58

Herbert Marshall
Herbert Marshall

Reputation: 166

An smallint unsigned max value is 65535 and uses 2 bytes

MySQL Reference

Upvotes: 5

Related Questions