If a given value is stored into the CHAR(4) and VARCHAR(4) columns, the trailing spaces of values retrieved from the columns are removed from CHAR columns. : Char Varchar : Data Types MySQL TUTORIALS
If a given value is stored into the CHAR(4) and VARCHAR(4) columns, the trailing spaces of values retrieved from the columns are removed from CHAR columns.
mysql> mysql> CREATE TABLE myTable (v VARCHAR(4), c CHAR(4)); Query OK, 0 rows affected (0.01 sec)