From: | Henry Interiano <henry(at)lamundial(dot)hn> |
---|---|
To: | Ayuda en Español de Postgresql <pgsql-es-ayuda(at)postgresql(dot)org> |
Subject: | Importar Datos con e Comando COPY |
Date: | 2005-05-14 18:27:25 |
Message-ID: | 4286430D.9060807@lamundial.hn |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-es-ayuda |
Saludos Lista
Estoy intentando importar datos con el comando Copy, pero tengo problema
con los datos que son de Fecha.
el forma del Archivo de texto es el sig:
'1999-04-12','2',18364.22,2192.77,0.00,20556.99,20556.99,0.00,0.00,0.00,0.00,'T',20555.73,'PT7',1.00,0.00,0.00,0.00
y la estructura de la tabla es la sigiente
CREATE TABLE totcjas
(
fecha date,
caja char(1),
tot_sub numeric(12,2),
tot_imp numeric(12,2),
tot_rec numeric(12,2),
tot_fac numeric(12,2),
tot_gra numeric(12,2),
tot_fle numeric(12,2),
to_tcre numeric(12,2),
to_exfi numeric(12,2),
to_tisv numeric(12,2),
cerrada char(1),
deposit numeric(12,2),
program varchar(12),
mercado_ne numeric(12,2),
tlinfac numeric(12,2),
tlinrec numeric(12,2),
tot_cinta numeric(12,2)
)
dbsample=#copy totcjas from 'c:/program files/postgresql/8.0/bin/mytxt.txt';
pero me da el siguiente error ;
ERROR: invalid input syntax for type date:
"'1999-04-12','2',18364.22,2192.77,0.00,20556.99,20556.99,0.00,0.00,0.00,0.00,'T',20555.73,'PT7',1.00,0.00,0.00,0.00"
CONTEXT: COPY totcjas, line 1, column fecha:
"'1999-04-12','2',18364.22,2192.77,0.00,20556.99,20556.99,0.00,0.00,0.00,0.00,'T',20555.73,'PT7',1.00..."
Alguna sugerencia.
Henry Interiano
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2005-05-14 20:08:23 | Re: Funcion que retorne nombre de llave primaria |
Previous Message | Juan Pablo Espino | 2005-05-14 18:10:51 | Funcion que retorne nombre de llave primaria |