X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id F2E259DCA08 for ; Sat, 11 Mar 2006 07:28:31 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 38064-03 for ; Sat, 11 Mar 2006 07:28:34 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from peufeu.com (boutiquenumerique.com [82.67.9.10]) by postgresql.org (Postfix) with ESMTP id 8B92D9DC86B for ; Sat, 11 Mar 2006 07:28:27 -0400 (AST) Received: (qmail 8652 invoked from network); 11 Mar 2006 12:29:15 +0100 Received: from boutiquenumerique.com (HELO apollo13) (82.67.9.10) by boutiquenumerique.com with SMTP; 11 Mar 2006 12:29:15 +0100 To: "AKHILESH GUPTA" , pgsql-general@postgresql.org, pgsql-sql@postgresql.org Subject: Re: [SQL] input from a external text file......! References: Message-ID: From: PFC Content-Type: text/plain; format=flowed; delsp=yes; charset=utf-8 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Date: Sat, 11 Mar 2006 12:29:14 +0100 In-Reply-To: User-Agent: Opera M2/8.51 (Linux, build 1462) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.104 required=5 tests=[AWL=0.104] X-Spam-Score: 0.104 X-Spam-Level: X-Archive-Number: 200603/440 X-Sequence-Number: 92305 inside psql, type : \i filename On Sat, 11 Mar 2006 11:29:20 +0100, AKHILESH GUPTA 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"