博客
关于我
[MySQL] mysql int后面的数字与前导零填充
阅读量:663 次
发布时间:2019-03-15

本文共 226 字,大约阅读时间需要 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;

 

  

转载地址:http://uqnmz.baihongyu.com/

你可能感兴趣的文章
next项目部署到服务器pm2进程守护
查看>>
nexus 介绍
查看>>
nexus上传jar
查看>>
Nexus指南中的更新强调集成和透明度的重要性
查看>>
Nexus指南已经发布
查看>>
Nexus(1):Nexus的安装与配置
查看>>
NFC技术:概述
查看>>
NFinal学习笔记 02—NFinalBuild
查看>>
NFS
查看>>
nfs mount 故障 mount.nfs: access denied by server while mounting 10.0.100.208:/backup_usb
查看>>