Re: duda MySQL

From: Date: Fri, 01 Jul 2005 10:45:40 +0000
Subject: Re: duda MySQL
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-55266@lists.php.net to get a copy of this message
Ponle doble barra invertida en cada literal para evitar que el PHP interprete los caracteres, o sea: '\\t', '\\n' y '\\' "Wessley Roche" <wes@iconizer.com> wrote in message news:0B793457-71B6-4D6F-A4D0-553A5D60541E@iconizer.com... hola otra vez, Tengo un problema con el siguiente query: $sql = "LOAD DATA LOCAL INFILE '/ruta/al/documento.txt' INTO TABLE productos FIELDS TERMINATED BY '\t' ESCAPED BY '\' LINES TERMINATED BY '\n'"; mysql_query($sql) or die('<br><br>'.mysql_error()); Me devuelve el siguiente 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 ''' at line 2 ¿Qué estoy haciendo mal? wes ··· Wessley Roche · Icon Designer · wessley@iconizer.com · www.iconizer.com ···

« previous php.general.es (#55266) next »