
April 30th, 2012, 05:12 AM
|
|
Registered User
|
|
Join Date: Apr 2012
Posts: 2
Time spent in forums: 21 m 7 sec
Reputation Power: 0
|
|
|
The lack of sqlplus is making me write more scripts
Lacking sqlplus, in postgres what I'm doing for my
input script is, I'm generating an sql query, I'm
storing the query in an external sql file, I'm running
psql mydatabase -f eachseparatesql_query.sql
Whereas for my oracle databases I do almost the same
thing, except after each query I don't need to spit it
into a separate external sql file. I can save it in a
HERE document and run it via sqlplus.
So, in short, my question is: How can I run a series of
psql queries without creating a separate external file
each time?
|