开发者

Why should I limit the column length in MySQL?

开发者 https://www.devze.com 2023-02-14 23:40 出处:网络
If you\'re sure you will not exceed the numer 9999 you should limit the column int(4). But I was wondering:

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

精彩评论

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

关注公众号