![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
18/03/2015, 18:11
|
| | Fecha de Ingreso: diciembre-2014
Mensajes: 60
Antigüedad: 10 años, 2 meses Puntos: 1 | |
Respuesta: De postgress a mysli O sea que mi codigo tendria que quedar así??...
<?php
error_reporting(E_ALL);
require_once "global.php";
//mysqli_query($mysqli,"TRUNCATE TABLE cfdcsd1");
$sql="LOAD DATA LOCAL INFILE 'C:\1\archivo.txt'
INTO TABLE cfdcsd1
FIELDS TERMINATED BY '|'
LINES TERMINATED BY '\r\n'
IGNORE 1 LINES";
mysqli_query($mysqli,$sql) or die ('Error: '. mysqli_error($mysqli));
?>
Perdon si no entendi |