php - LOAD DATA LOCAL INFILE with specific column Syntax error -
i have query giving me syntax error. can figure out what's problem?
$ins_cupon = mysqli_query($link, "load data local infile '".$ruta."' table cupones ignore ".$lines." (@dummy, @col1) set encuesta_id = '".$encuesta_id."', nom_producto = '".$nombre_producto."', cupon = @col1") or die(mysqli_error($link)); this error
you have error in sql syntax; check manual corresponds mysql server version right syntax use near '(@dummy, @col1) set encuesta_id = '555', nom_producto = 'ghjhg' ,cupon = @col1' @ line 1
did miss "lines" after ignore?
ignore ".$lines." lines
Comments
Post a Comment