pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@commandprompt.com>
To: Chapilliquen Gutierrez Eduardo <ECHAPILLIQUEN@minem.gob.pe>
Cc: pgsql-es-ayuda@postgresql.org
Subject: Re: Ejecutar \copy desde VB
Date: Tue, 19 Jun 2007 13:25:59 -0400
Message-ID: <20070619172559.GX4265@alvh.no-ip.org> (raw)
In-Reply-To: <52865C3823D7134E909B33D382298594227C29@srvmail01.mem.int>
References: <c2d9e70e0706181909i4a27b12cif5efc73c74ca6db8@mail.gmail.com>
	<570797.97455.qm@web63713.mail.re1.yahoo.com>
	<c2d9e70e0706182030t759325c8ub17c780c66cc77c@mail.gmail.com>
	<52865C3823D7134E909B33D3822985942279D7@srvmail01.mem.int>
	<20070619154020.GO4265@alvh.no-ip.org>
	<52865C3823D7134E909B33D382298594227B80@srvmail01.mem.int>
	<20070619171050.GU4265@alvh.no-ip.org>
	<52865C3823D7134E909B33D382298594227C29@srvmail01.mem.int>

Chapilliquen Gutierrez Eduardo escribió:
> No, un no he hecho el programa con STDIN como me sugeriste, el tema es
> que no se como debo leer despuƩs los datos para enviarlo a la tabla

Bueno, si no sabes programar en el lenguaje que estas utilizando, no es
en esta lista donde debes consultar.  Lo unico que te puedo decir es que
en C lo harias con la rutina PQputCopyData, y terminas con PQputCopyEnd.
Esto se hace despues de haber enviado un COPY FROM STDIN.

-- 
Alvaro Herrera                 http://www.amazon.com/gp/registry/CTMLCN8V17R4
"Ninguna manada de bestias tiene una voz tan horrible como la humana" (Orual)



view thread (25+ messages)  latest in thread

Message-ID: <20070619172559.GX4265@alvh.no-ip.org>
Permalink:  ../20070619172559.GX4265@alvh.no-ip.org/
Also on:    postgresql.org/message-id/20070619172559.GX4265@alvh.no-ip.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: alvherre@commandprompt.com, ECHAPILLIQUEN@minem.gob.pe, pgsql-es-ayuda@postgresql.org
  Subject: Re: Ejecutar \copy desde VB
  In-Reply-To: <20070619172559.GX4265@alvh.no-ip.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox