RE: ayuda con copy

From: MIGUEL CANCHAS <mcanchas(at)tsr(dot)com(dot)pe>
To: 'Agustin Casiva' <casivaagustin(at)gmail(dot)com>, pgsql-es-ayuda(at)postgresql(dot)org
Subject: RE: ayuda con copy
Date: 2007-10-16 16:44:55
Message-ID: 410117BB01F4D611B73A00010331DD2403B581BC@tsnt.tsr.com.pe
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

le puse :

copy fo from 'c:\voucher.txt' DELIMITER by '\t' ;
me da este error :

ERROR: syntax error at or near "by" at character 41
LINE 1: copy fo from 'c:\voucher.txt' DELIMITER by '\t';

Miguel

-----Mensaje original-----
De: Agustin Casiva [mailto:casivaagustin(at)gmail(dot)com]
Enviado el: Martes, 16 de Octubre de 2007 11:41 a.m.
Para: pgsql-es-ayuda(at)postgresql(dot)org
Asunto: Re: [pgsql-es-ayuda] ayuda con copy

On 10/16/07, MIGUEL CANCHAS < mcanchas(at)tsr(dot)com(dot)pe
<mailto:mcanchas(at)tsr(dot)com(dot)pe> > wrote:

Estoy intentando usar el COPY

-- ME CONECTO A MI BASE DE DATOS SIG
template1-# \c SIG
You are now connected to database "SIG".

-- ME LOGRO CONECTAR

-- HAGO EL COPY
SIG-# copy fo from 'c:\voucher.txt'

prueba con

copy fo from 'c:\voucher.txt' DELIMITER by '\t' ;

No te olvides de poner el punto y coma al final, es una instrucción SQL. ;)

Saludos

--
Agustin Casiva
http://www.osis.com.ar <http://www.osis.com.ar>
casivaagustin(at)gmail(dot)com <mailto:casivaagustin(at)gmail(dot)com>
http://www.casivaagustin.com.ar <http://www.casivaagustin.com.ar>

Para leer adjuntos necesitará Open Office
http://es.openoffice.org/programa/ <http://es.openoffice.org/programa/>

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message MIGUEL CANCHAS 2007-10-16 18:36:08 mi primer trigger
Previous Message Agustin Casiva 2007-10-16 16:40:52 Re: ayuda con copy