pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Igor Sysoev <igor@nitek.ru>
To: davez@debitnet.com
Cc: pgsql-sql@postgresql.org
Subject: Re: [SQL] Perl and SQL
Date: Fri, 15 May 1998 10:24:38 +0400
Message-ID: <199805150626.KAA24995@ns.nitek.ru> (raw)

> 	Does anybody know an easy way to convert the 'INSERT INTO' command using
> perl to move data into SQL?  I know I can use Pg.pm, but this is really
> intended to do all the commands. I simply want to use my existing Perl
> scripts and all I need to do is the 'INSERT INTO' command to put new data
> into my table.  I do not have the Pg.pm set up on my site and I really do
> not need it to be if there is a simple way to use the 'INSERT INTO'
command
> with my existing perl script.

I think you can try:

$result = `psql base -c 'insert into ...'` ;

and of course your script must have rights to access database <base>.

with best regards,
Igor Sysoev




view thread (2+ messages)

Message-ID: <199805150626.KAA24995@ns.nitek.ru>
Permalink:  ../199805150626.KAA24995@ns.nitek.ru/
Also on:    postgresql.org/message-id/199805150626.KAA24995@ns.nitek.ru

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: igor@nitek.ru, davez@debitnet.com
  Subject: Re: [SQL] Perl and SQL
  In-Reply-To: <199805150626.KAA24995@ns.nitek.ru>
  References: <199805150626.KAA24995@ns.nitek.ru>

* 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