Insert psql commands inside a script

From: "Letnes, David G(dot)" <david(dot)letnes(at)unisys(dot)com>
To: <pgsql-sql(at)postgresql(dot)org>
Subject: Insert psql commands inside a script
Date: 2005-04-21 22:19:23
Message-ID: 2F1DE8CC97C00645B9FEA539982DA22401900D5A@USEA-EXCH4.na.uis.unisys.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


I have used the psql -f /tmp/SelectCommands.sql before, but now I want
to put the sql statement right in the shell script. I haven't had any
luck. Is there a command I can use that will not point to a file for
the sql instructions but right on the same line. I use very short psql
commands and would like to do it all with 1 file.

Thank You
David

> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE
> PROPRIETARY MATERIAL and is thus for use only by the intended
> recipient. If you received this in error, please contact the sender
> and delete the e-mail and its attachments from all computers.
>
>

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tony Wasson 2005-04-22 01:21:27 Looking for a way to sum integer arrays....
Previous Message Mauro Bertoli 2005-04-21 12:00:02 php wrapper