differentiate between chart and varchar type
Answers
Answered by
1
Used to store character string value of fixed length.
The maximum no. of characters the data type can hold is 255 characters.
It's 50% faster than VARCHAR.
Uses static memory allocation.
VARCHAR
Used to store variable lengthalphanumeric data.
The maximum this data type can hold is up to
Pre-MySQL 5.0.3: 255 characters.
In MySQL 5.0.3+: 65,535 charactersshared for the row.
It's slower than CHAR.
Uses dynamic memory allocation*.
pratiksha49:
thank you so much
Similar questions
Math,
7 months ago
Math,
7 months ago
Math,
1 year ago
Physics,
1 year ago
Social Sciences,
1 year ago