Re: duda MySQL

From: Date: Fri, 01 Jul 2005 10:30:53 +0000
Subject: Re: duda MySQL
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-55263@lists.php.net to get a copy of this message
Wessley Roche wrote:
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? Creo que el error te lo esta tirando porque PHP esta interpretando los caracteres \t, \n, etc.
echo $sql que te devuelve??? Proba usando comillas simples. $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()); Saludos -- Juan Francisco Giordana Homepage: http://www.juangiordana.com.ar Linux registered user 294733

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