Try adding ZEROFILL attribute to the field.
More Related Contents:
- MySQL – Get row number on select
- Delimiters in MySQL
- How to store Emoji Character in MySQL Database
- Group by clause in mySQL and postgreSQL, why the error in postgreSQL?
- MySQL: Quick breakdown of the types of joins [duplicate]
- Any way to select without causing locking in MySQL?
- Log all queries in mysql
- ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)
- Cast from VARCHAR to INT – MySQL
- MySQL SELECT WHERE datetime matches day (and not necessarily time)
- How to convert timestamp to datetime in MySQL?
- Adding multiple columns AFTER a specific column in MySQL
- MySQL varchar index length
- Can a MySQL trigger simulate a CHECK constraint? [duplicate]
- Ruby on Rails 3 Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ on OSX
- MYSQL_ROOT_PASSWORD is set but getting “Access denied for user ‘root’@’localhost’ (using password: YES)” in docker container
- Best practices for SQL varchar column length [closed]
- How to design a multi tenant mysql database
- MySQL – Fetching lowest value
- What are differences between INSERT and UPDATE in MySQL?
- How to produce “phantom read” in REPEATABLE READ? (MySQL)
- How to alias a field or column in MySQL?
- How to delete duplicate rows from a MySQL table
- mysql: why comparing a ‘string’ to 0 gives true?
- Why doesn’t MySQL’s MyISAM engine support Foreign keys?
- SELECT INTO Variable in MySQL DECLARE causes syntax error?
- Where does MySQL store database files on Windows and what are the names of the files?
- RMySQL dbWriteTable with field.types
- Mysql stored procedure don’t take table name as parameter
- Composite Primary Key performance drawback in MySQL