From: | "Nigel J(dot) Andrews" <nandrews(at)investsystems(dot)co(dot)uk> |
---|---|
To: | victor3(dot)lopes(at)voila(dot)fr <victor3(dot)lopes(at)voila(dot)fr> |
Cc: | pgsql-interfaces <pgsql-interfaces(at)postgresql(dot)org> |
Subject: | Re: TR: interface PERL and return results |
Date: | 2002-10-07 17:42:10 |
Message-ID: | Pine.LNX.4.21.0210071832140.3248-100000@ponder.fairway2k.co.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-interfaces |
Bonjour,
On Mon, 7 Oct 2002, [utf-8] victor3(dot)lopes(at)voila(dot)fr wrote:
> Hello no one has a solution for my problem :-) ?
>
>
> ---------- Entête Initiale -----------
>
> De : "victor3(dot)lopes(at)voila(dot)fr" <victor3(dot)lopes(at)voila(dot)fr>
> A : "pgsql-interfaces" <pgsql-interfaces(at)postgresql(dot)org>
> Copie :
> Date : Sat, 5 Oct 2002 23:31:40 +0200
> Objet : interface PERL and return results
>
> Hello,
> I use Perl Pg interface to join my postgresql database.
>
> I wan't send the below query in perl :
>
> $res = $db->exec(' create table temp (....); \copy temp from result.res');
The \copy is a psql command. You need to use just the word 'copy' without the
leading '\'.
Using:
COPY temp FROM /path/to/result.res
will try and read result.res from a file on the server system. To load a file
on your client system you should use COPY temp FROM STDIN and read the Pg
manpage.
Documentation:
http://developer.postgresql.org/docs/postgres/sql-copy.html
and
man Pg
search for 'copy' in the second of these to get a good starting point on the
subject.
--
Nigel J. Andrews
Director
---
Logictree Systems Limited
Computer Consultants
From | Date | Subject | |
---|---|---|---|
Next Message | Howie Eskin | 2002-10-07 20:57:29 | help -- dyld: /usr/bin/perl Undefined symbols: |
Previous Message | victor3.lopes | 2002-10-07 14:38:55 | TR: interface PERL and return results |