我想导入csv文件到mysql数据库。上传成功。但没有什么可导入的。我想我在sql查询中是错的。下面是我的问题:
mysql_query("LOAD DATA LOCAL INFILE '$filename' INTO TABLE CityBlocks FIELDS TERMINATED BY '' ESCAPED BY '\\' LINES TERMINATED BY '\r\n' IGNORE 2 LINES (startIpNu
我在mysql导入中使用了-f或-force,但是错误总是不会被忽略.mysql -f -u用户-p db_story < story.sql
ERROR 1064 (42000) at line 13639: You have an error in yourSQL syntax; check the manual that corresponds to your MySQL server version for the right syntax