Re: duda MySQL
| From: | Wessley Roche | Date: | Fri, 01 Jul 2005 09:52:39 +0000 |
| Subject: | Re: duda MySQL | ||
| References: | 1 2 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-55262@lists.php.net to get a copy of this message | ||
Pero... entonces como es que el error que me devuelve, es un error de sintaxis?
Y he probado a hacer lo mismo desde PHPmyAdmin... y ha funcionado sin problemas...
wes
···
Wessley Roche · Icon Designer · wessley@iconizer.com · www.iconizer.com
···
On Jul 1, 2005, at 11:38 AM, Ferran Orsola wrote:
Seguramente el problema esta dentro del '/ruta/al/documento.txt' no en el SQL.... Ferran Wessley Roche wrote:hola otra vez, Tengo un problema con el siguiente query: $sql = "LOAD DATA LOCAL INFILE '/ruta/al/documento.txt' INTO TABLEproductosFIELDS 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 ···