What is the difference between char and varchar

The key difference between CHAR and VARCHAR is that the former is a fixed-length data type while later is a variable-length data type.To give you an example, CHAR(10) is a fixed-length non-Unicode string of length 10, while VARCHAR(10) is a variable-length non-Unicode string with a maximum length of 10.