Ever find yourself building a database only to start questioning
what data types you should use for a specific column? In this
entry of the MySQL data types series, we’ll
explore the various ways you can save strings and text to a
database to help demystify the options you have as a developer,
starting with VARCHAR and CHAR.
VARCHAR is probably the most widely used data type
for strings. It stores a string of variable
length up to a maximum of 65,535 characters. When
creating a VARCHAR field, you’ll be able to specify
the maxmimum number of characters the field will accept using the …