From: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> |
---|---|
To: | yanguma <ricardo(dot)yanguma(at)gmail(dot)com> |
Cc: | Fernando Hevia <fhevia(at)ip-tel(dot)com(dot)ar>, postgresayuda <pgsql-es-ayuda(at)postgresql(dot)org> |
Subject: | Re: RESTRICION FUNCION COPY |
Date: | 2009-12-18 22:42:15 |
Message-ID: | 20091218224215.GU4055@alvh.no-ip.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-es-ayuda |
yanguma escribió:
> Fernando gracias,
>
> La idea es que el usuario prepare un archivo plano y luego subirlo a la
> tabla .. pero tocara con php leer el archivo y hacer insert para cada
> registro o fila del archivo plano que cargo.
Puedes leer el archivo y pasarlo por trozos a COPY, como decía el hint.
http://www.php.net/manual/en/function.pg-copy-from.php
http://www.php.net/manual/en/function.pg-put-line.php
Una vuelta por el manual hace bien.
--
Alvaro Herrera Vendo parcela en Valdivia:
http://www.portalinmobiliario.com/propiedades/fichas.asp?PropID=749682
"The eagle never lost so much time, as
when he submitted to learn of the crow." (William Blake)
From | Date | Subject | |
---|---|---|---|
Next Message | Walter Negro | 2009-12-19 00:30:54 | Re: ultimo registro en postgres |
Previous Message | Alvaro Herrera | 2009-12-18 22:26:23 | Re: ultimo registro en postgres |