속성 추가 (1) 썸네일형 리스트형 [mysql] 자주 사용하는 쿼리 use notice; -- notice라는 데이터베이스 사용하기 명령 -- 테이블 만들기 create table list ( num int(10) not null, title varchar(50) not null comment '제목', content text comment '내용', author varchar(50) not null comment '글쓴이', primary key (num) ); desc list; -- 만든 테이블의 정보 조회 alter table list convert to charset utf8; -- 케러셋 변환 select * from list; -- list 라는 테이블 조회 alter table list auto_increment=1; -- 자동 증가 수 1부터 시작으로 변경 이전 1 다음