그냥 기존 테이블 구조를 다른 데이터베이스로 복사하려고합니다.mysql에서 테이블 생성 후 구문 오류
SHOW CREATE TABLE keyword_session
가 그럼 난 다른 데이터베이스에서의 출력을 실행합니다 :
이처음 실행 : 모든 쿼리는 phpMyAdmin을 실행하는
CREATE TABLE `keyword_session` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`session_id` int(11) NOT NULL,
`keyword_id` int(11) NOT NULL, PRIMARY KEY (`id`))
ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1
그리고 오류 가지고 :
을#1064 - 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 '
id
int(11) NOT NULL AUTO_INCREMENT, Âsession_id
int(11) NOT NULL, Â `keywor' at line 1
구문 오류는 어디에 있습니까? SHOW CREATE TABLE을 실행할 수있는 결과가 아닐까요?
편집 : 나는 테이블을 만들려고 시스템의 일부 정보 :
Database server :
Server: Localhost via UNIX socket
Software: MySQL
Software version: 5.1.63-0ubuntu0.11.10.1 - (Ubuntu)
Protocol version: 10
User: ...
Server charset: UTF-8 Unicode (utf8)
Web server:
...
phpMyAdmin:
Version information: 3.5.1, latest stable version: 3.5.5
...
uhmm, create table 문이 fiddle에서 작동 중입니다. http://www.sqlfiddle.com/#!2/ab087 –
 session_id int (11) NOT NULL, Â에 알 수없는 기호' '가 있습니다. . – hjpotter92