Consider the two String types in MySQL
1.Char[LENGTH]
2.Varchar[LENGTH]
Question:Defining the LENGTH field is necessary For which type Varchar or Char ?
According to My opinion It is Char but In one tutorial it is written that you must define Length for Varchar while there is no such requirement for Char type.
CHAR(M) - A fixed-length string between 1 and 255 characters in length (for example
CHAR(5)), right-padded with spaces to the specified length when stored. Defining a length
is not required, but the default is 1.
VARCHAR(M) - A variable-length string between 1 and 255 characters in length; for
example VARCHAR(25). You must define a length when creating a VARCHAR field.
Link: www.tutorialspoint.com/mysql/mysql-data-types.htm
Is the thing Written in Tutorial Right?