제목과 같은 쿼리문에서
a.name 은 char(10) 이고
b.name 은 char(20) 인 경우
b.name 이 char(10) 인 경우 보다 속도가 빠르지 않다고 합니다.
필드의 속성은 이렇게 바꿀 수 있습니다.
alter table a modify name char(10);
alter table a change name name char(10);<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:27:00 MySQL에서 이동 됨]</div>
a.name 은 char(10) 이고
b.name 은 char(20) 인 경우
b.name 이 char(10) 인 경우 보다 속도가 빠르지 않다고 합니다.
필드의 속성은 이렇게 바꿀 수 있습니다.
alter table a modify name char(10);
alter table a change name name char(10);<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:27:00 MySQL에서 이동 됨]</div>
댓글 2개
haejuksun
14년 전
좋은 정보 고맙습니다.
14년 전
인덱스가 있는 경우인가요?
http://dev.mysql.com/doc/refman/5.0/en/mysql-indexes.html
To retrieve rows from other tables when performing joins. MySQL can use indexes on columns more efficiently if they are declared as the same type and size. In this context, VARCHAR and CHAR are considered the same if they are declared as the same size. For example, VARCHAR(10) and CHAR(10) are the same size, but VARCHAR(10) and CHAR(15) are not.
http://dev.mysql.com/doc/refman/5.0/en/mysql-indexes.html
To retrieve rows from other tables when performing joins. MySQL can use indexes on columns more efficiently if they are declared as the same type and size. In this context, VARCHAR and CHAR are considered the same if they are declared as the same size. For example, VARCHAR(10) and CHAR(10) are the same size, but VARCHAR(10) and CHAR(15) are not.
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 30 |
아우겐나이스
|
21년 전 | 4031 | |
| 29 |
아우겐나이스
|
21년 전 | 4430 | |
| 28 |
아우겐나이스
|
21년 전 | 3448 | |
| 27 | 21년 전 | 5814 | ||
| 26 | 21년 전 | 3083 | ||
| 25 | 21년 전 | 6062 | ||
| 24 | 18년 전 | 3634 | ||
| 23 | 21년 전 | 3626 | ||
| 22 | 21년 전 | 4235 | ||
| 21 | 21년 전 | 3811 | ||
| 20 | 21년 전 | 4209 | ||
| 19 | 21년 전 | 6668 | ||
| 18 | 21년 전 | 4726 | ||
| 17 | 21년 전 | 6968 | ||
| 16 | 21년 전 | 4160 | ||
| 15 | 21년 전 | 2611 | ||
| 14 | 21년 전 | 4959 | ||
| 13 | 21년 전 | 3389 | ||
| 12 |
Recluse
|
21년 전 | 3861 | |
| 11 |
아우겐나이스
|
21년 전 | 3558 | |
| 10 |
Recluse
|
21년 전 | 3385 | |
| 9 | 21년 전 | 3963 | ||
| 8 | 21년 전 | 5152 | ||
| 7 | 21년 전 | 4748 | ||
| 6 | 21년 전 | 5659 | ||
| 5 | 21년 전 | 4101 | ||
| 4 | 21년 전 | 4821 | ||
| 3 | 21년 전 | 4733 | ||
| 2 | 21년 전 | 3231 | ||
| 1 | 22년 전 | 4331 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기