开发者

Why should I limit the column length in MySQL?

If you're sure you will not exceed the numer 9999 you should limit the column int(4). But I was wondering:

Thanks!


The limit is not used to limit anything, except when ZEROFILL is in play.

Reference: http://alexander.kirk.at/2007/08/24/what-does-size-in-intsize-of-mysql-mean/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜