php - SQL Buddy , mySQL Error for LOAD DATA LOCAL INFILE -


i trying import csv file mysql database. query giving error. query :

load data local infile ‘/last.csv’ table punjab fields terminated ‘,’ enclosed ‘”‘ lines terminated ‘\r\n’ (newpoll, blockcode, halqa, pollnumber, pollstation, sex, area); 

and error

you have error in sql syntax; check manual corresponds mysql server version right syntax use near '‘/last.csv’ table punjab fields terminated ‘,’ enclosed ‘�' @ line 1 

any ideas ?? thanks

you have used http://www.whereismyballot.com ;) way, shouldn't have quoted field names


Popular posts from this blog

Php - Delimiter must not be alphanumeric or backslash -

Delphi interface implements -

java - How to create Table using Apache PDFBox -