Differenciate between char and varchar in mysql
Answers
Answered by
2
CHAR
Is Used to store character string value of fixed length.
= The maximum no. of characters the data type can hold is 255 characters.
=Uses static memory allocation.
Varchar:
Used to store variable length alphanumeric data.
=The maximum this data type can hold is up to65,535 characters.
= Uses dynamic memory allocation.
Similar questions