Mysql
 sql >> Base de Dados >  >> RDS >> Mysql

LOAD DATA INFILE erro 1064


http://dev.mysql.com/doc/refman /5.6/en/load-data.html mostra a sintaxe. As colunas de nomenclatura da cláusula vão após a cláusula IGNORE.
LOAD DATA LOCAL INFILE 'books.csv'
  INTO TABLE BOOK 
FIELDS TERMINATED BY '\t'
LINES TERMINATED BY '\r\n'
IGNORE 1 LINES
(Book_id, @dummy, Title, Publisher_name, @dummy, @dummy);