Re: input from a external text file......! - Mailing list pgsql-sql

From Andreas Kretschmer
Subject Re: input from a external text file......!
Date
Msg-id 20060311103317.GA11598@KanotixBox
Whole thread Raw
In response to input from a external text file......!  ("AKHILESH GUPTA" <akhilesh.davim@gmail.com>)
List pgsql-sql
AKHILESH GUPTA <akhilesh.davim@gmail.com> schrieb:

> Hi All.........!
> I just want to know one thing that is it possible with PGSQL that,
> if I want to insert and execute a query from a external text file instead of
> giving it at the pgsql prompt?

in psql, try simple "\i your_file.sql" to execute the commands within
this file.


HTH, Andreas
-- 
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect.                              (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly."    (unknow)
Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°


pgsql-sql by date:

Previous
From: "AKHILESH GUPTA"
Date:
Subject: input from a external text file......!
Next
From: PFC
Date:
Subject: Re: input from a external text file......!