Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UPDATE table SET col = LPAD(col, 6, '0');
- CREATE TABLE table1 (
- number INT(6) ZEROFILL DEFAULT NULL
- );
- INSERT INTO table1 VALUES(1);
- SELECT * FROM table1;
- +--------+
- | number |
- +--------+
- | 000001 |
- +--------+
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement