pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedinput from a external text file......!
3+ messages / 3 participants
[nested] [flat]
* input from a external text file......!
@ 2006-03-11 10:29 AKHILESH GUPTA <akhilesh.davim@gmail.com>
2006-03-11 10:33 ` Re: input from a external text file......! Andreas Kretschmer <akretschmer@spamfence.net>
2006-03-11 11:29 ` Re: [SQL] input from a external text file......! PFC <lists@peufeu.com>
0 siblings, 2 replies; 3+ messages in thread
From: AKHILESH GUPTA @ 2006-03-11 10:29 UTC (permalink / raw)
To: pgsql-general@postgresql.org; pgsql-sql
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?
just like in Oracle the file having query is executed with a '@ filename'
statement at the sql prompt......!
plz help me and mail me @ akhilesh.davim@gmail.com, it's urgent.
thanks in advance.......................!
(i have searched alot, but didn't found anything)
--
Thanks & Regards,
Akhilesh
DAV Institute of Management
Faridabad(Haryana)
GSM:-(+919891606064)
(+911744293789)
"FAILURES CAN BE FORGIVEN BUT AIMING LOW IS A CRIME"
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: input from a external text file......!
2006-03-11 10:29 input from a external text file......! AKHILESH GUPTA <akhilesh.davim@gmail.com>
@ 2006-03-11 10:33 ` Andreas Kretschmer <akretschmer@spamfence.net>
1 sibling, 0 replies; 3+ messages in thread
From: Andreas Kretschmer @ 2006-03-11 10:33 UTC (permalink / raw)
To: 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°
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: [SQL] input from a external text file......!
2006-03-11 10:29 input from a external text file......! AKHILESH GUPTA <akhilesh.davim@gmail.com>
@ 2006-03-11 11:29 ` PFC <lists@peufeu.com>
1 sibling, 0 replies; 3+ messages in thread
From: PFC @ 2006-03-11 11:29 UTC (permalink / raw)
To: AKHILESH GUPTA <akhilesh.davim@gmail.com>; pgsql-general@postgresql.org; pgsql-sql
inside psql, type :
\i filename
On Sat, 11 Mar 2006 11:29:20 +0100, AKHILESH GUPTA
<akhilesh.davim@gmail.com> wrote:
> 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?
> just like in Oracle the file having query is executed with a '@ filename'
> statement at the sql prompt......!
> plz help me and mail me @ akhilesh.davim@gmail.com, it's urgent.
> thanks in advance.......................!
> (i have searched alot, but didn't found anything)
>
> --
> Thanks & Regards,
> Akhilesh
> DAV Institute of Management
> Faridabad(Haryana)
> GSM:-(+919891606064)
> (+911744293789)
>
> "FAILURES CAN BE FORGIVEN BUT AIMING LOW IS A CRIME"
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2006-03-11 11:29 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-03-11 10:29 input from a external text file......! AKHILESH GUPTA <akhilesh.davim@gmail.com>
2006-03-11 10:33 ` Andreas Kretschmer <akretschmer@spamfence.net>
2006-03-11 11:29 ` PFC <lists@peufeu.com>
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