https://blog.csdn.net/m0_37479246/article/details/79964672?utm_term=mysql%E8%AE%BE%E7%BD%AE%E9%9B%B6%E5%A1%AB%E5%85%85&utm_medium=distribute.pc_aggpage_search_result.none-task-blog-2~all~sobaiduweb~default-0-79964672&spm=3001.4430
zerofill: 當插入的數值比定義的屬性長度小的時候,會在數值前面進行補值操作。
創建表
create table table_name (
id bigint(20) NULL,
order_no int(6) unsigned zerofill NULL
);
插入數據:
INSERT INTO table_name VALUES(2,5)
查數據:
SELECT * FROM table_name
