📜  mysql zerofill - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:18.906000             🧑  作者: Mango

代码示例1
CREATE TABLE yourtable (x INT(8) ZEROFILL NOT NULL, y INT(8) NOT NULL);
INSERT INTO yourtable (x,y) VALUES
(1, 1),
(12, 12),
(123, 123),
(123456789, 123456789);
SELECT x, y FROM yourtable;