1.int或者tinyint等数值型字段的存储范围已经是固定的,和类型相关
2.后面的数字只与显示有关,并且是在开启了zerofill前导零填充的前提下3.显示的时候,在前面用0补全了
create table my_test( id int unsigned, nums int(2) zerofill, age int(2));insert into my_test value(1,1,1);select * from my_test;
本文共 280 字,大约阅读时间需要 1 分钟。
1.int或者tinyint等数值型字段的存储范围已经是固定的,和类型相关
2.后面的数字只与显示有关,并且是在开启了zerofill前导零填充的前提下3.显示的时候,在前面用0补全了
create table my_test( id int unsigned, nums int(2) zerofill, age int(2));insert into my_test value(1,1,1);select * from my_test;
转载于:https://www.cnblogs.com/taoshihan/p/10614811.html