error copy Postgres
Publicado por David Niño (1 intervención) el 04/08/2008 19:31:17
buenos Dias, estoy tratando de correr en linux el liguiente comando copy desde un archivo csv pero me esta mostrando algunos problemas:
copy ftp_informacion_pdf(cuenta,nombre,contacto,direccion,ciudad,departamento,pais,telefono,observaciones,tipoPer,carpeta,CantidadComprobantes) from '/root/archivosFtp/archivo.csv';
y la definicion de mi tabla es la siguiente:
Table "public.ftp_informacion_pdf"
Column | Type | Modifiers
----------------------+------------------------+------------------------------------------------------------------
id | integer | not null default nextval('ftp_informacion_pdf_id_seq'::regclass)
cuenta | integer | not null
nombre | character varying(200) | not null
contacto | character varying(200) | not null
direccion | character varying(200) | not null
ciudad | character varying(200) | not null
departamento | character varying(200) | not null
pais | character varying(200) | not null
telefono | character varying(200) | not null
observaciones | character varying(200) | not null
tipoPer | character varying(200) | not null
carpeta | character varying(200) | not null
cantidadComprobantes | integer | not null
Indexes:
"ftp_informacion_pdf_pkey" PRIMARY KEY, btree (id)
pero me muestra el siguiente error:
ERROR: column "cuenta" of relation "ftp_informacion_pdf" does not exist
¿podrian ayudarme a solucionar mi problema?
he hecho de todo pero no encuentro la forma de solucionar el problema...
copy ftp_informacion_pdf(cuenta,nombre,contacto,direccion,ciudad,departamento,pais,telefono,observaciones,tipoPer,carpeta,CantidadComprobantes) from '/root/archivosFtp/archivo.csv';
y la definicion de mi tabla es la siguiente:
Table "public.ftp_informacion_pdf"
Column | Type | Modifiers
----------------------+------------------------+------------------------------------------------------------------
id | integer | not null default nextval('ftp_informacion_pdf_id_seq'::regclass)
cuenta | integer | not null
nombre | character varying(200) | not null
contacto | character varying(200) | not null
direccion | character varying(200) | not null
ciudad | character varying(200) | not null
departamento | character varying(200) | not null
pais | character varying(200) | not null
telefono | character varying(200) | not null
observaciones | character varying(200) | not null
tipoPer | character varying(200) | not null
carpeta | character varying(200) | not null
cantidadComprobantes | integer | not null
Indexes:
"ftp_informacion_pdf_pkey" PRIMARY KEY, btree (id)
pero me muestra el siguiente error:
ERROR: column "cuenta" of relation "ftp_informacion_pdf" does not exist
¿podrian ayudarme a solucionar mi problema?
he hecho de todo pero no encuentro la forma de solucionar el problema...
Valora esta pregunta


0