개발노트
[개발노트] char/varchar
별토끼.
2017. 9. 10. 18:09
반응형
[개발노트] char/varchar
CHAR
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 length alphanumeric 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 characters shared for the row.
It's slower than CHAR.
Uses dynamic memory allocation*.
[참조] https://stackoverflow.com/questions/1885630/whats-the-difference-between-varchar-and-char
반응형