반응형
[개발노트] 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
반응형
'개발노트' 카테고리의 다른 글
[jQuery] 썸네일을 만들어주는 플러그인 (0) | 2017.10.27 |
---|---|
[개발노트] SVN (0) | 2017.09.18 |
[개발노트] jqeury head에 넣기 (0) | 2017.09.08 |
[개발노트] jquery 이용한 click시 null check 하기 (0) | 2017.09.08 |
[오류노트] hashmap/jackson lib를 이용한 ajax응답 (0) | 2017.09.05 |
댓글