MySQL ENUM

Jmnote (토론 | 기여)님의 2015년 10월 30일 (금) 16:19 판 (→‎개요)

1 개요

MySQL ENUM Type
MySQL ENUM 타입
CREATE TABLE shirts (
    name VARCHAR(40),
    size ENUM('x-small', 'small', 'medium', 'large', 'x-large')
);
mysql> SELECT column_type FROM information_schema.columns WHERE table_name='shirts' AND column_name='size';
+----------------------------------------------------+
| column_type                                        |
+----------------------------------------------------+
| enum('x-small','small','medium','large','x-large') |
+----------------------------------------------------+
1 row in set (0.00 sec)

2 같이 보기

3 참고 자료

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}