MySql 테이블 생성 에러

· 2012-12-25 (화) 10:59:16 · 1678 · 2
Untitled-1.gif
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.

오류 주소 :

create table department
( dept_no int not null auto_increment,
dept_name varchar(20) not null,
office varchar(20) not null,
office_tel varchar(13),
primary key(dept_no);

치고 엔터를 누르면

error 1064 (42000): You have an error in your sql syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near '<dept_no))' at line 6

이렇게 나오네요. ㅠㅠ

첨부파일

Untitled-1.gif (16.5 KB)
0회 2012-12-25 10:59
|

댓글 2개

2012-12-25 (화) 12:35:08
primary key(dept_no));

닫는 괄호 추가 후 테스트 해 보세요.
감사합니다 ^.^
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

66,531건

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
12-12-26 조회 887
12-12-26 조회 2,353
12-12-26 조회 1,608
12-12-26 조회 1,035
12-12-26 조회 1,609
12-12-26 조회 1,088
12-12-26 조회 2,209
12-12-25 조회 911
12-12-25 조회 889
12-12-25 조회 915
12-12-25 조회 1,319
12-12-25 조회 653
12-12-25 조회 769
12-12-25 조회 827
12-12-25 조회 1,679
12-12-25 조회 892
12-12-25 조회 886
12-12-25 조회 876
12-12-25 조회 1,234
12-12-25 조회 943