I have this query which is giving me a syntax error. Can someone figure it out what's the problem?
$ins_cupon = mysqli_query($link, "LOAD DATA LOCAL INFILE '".$ruta."' INTO TABLE cupones
IGNORE ".$lines." (@dummy, @col1)
SET encuesta_id = '".$encuesta_id."', nom_producto = '".$nombre_producto."', cupon = @col1") or die(mysqli_error($link));
This is the error
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 '(@dummy, @col1) SET encuesta_id = '555', nom_producto = 'ghjhg' ,cupon = @col1' at line 1
您是否在IGNORE之后错过了“ LINES”?
IGNORE ".$lines." LINES
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.