X-Original-To: pgsql-chat-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 8D3B9DAD8A for ; Mon, 24 Oct 2005 20:47:30 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 90673-05 for ; Mon, 24 Oct 2005 23:47:04 +0000 (GMT) Received: from eastrmmtao05.cox.net (eastrmmtao05.cox.net [68.230.240.34]) by svr1.postgresql.org (Postfix) with ESMTP id 73C68D7C4C for ; Mon, 24 Oct 2005 20:47:05 -0300 (ADT) Received: from [192.168.0.17] (really [68.105.167.49]) by eastrmmtao05.cox.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20051024234705.OKCO28234.eastrmmtao05.cox.net@[192.168.0.17]>; Mon, 24 Oct 2005 19:47:05 -0400 From: Robert Treat To: pgsql-chat@postgresql.org Subject: Re: Help for converting Oracle Script Date: Mon, 24 Oct 2005 19:47:07 -0400 User-Agent: KMail/1.6.2 Cc: "Sawant, Nandu" References: <2E314DE03538984BA5634F12115B3A4E5C1646@email1.mitretek.org> In-Reply-To: <2E314DE03538984BA5634F12115B3A4E5C1646@email1.mitretek.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <200510241947.07461.xzilla@users.sourceforge.net> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.031 required=5 tests=[AWL=0.031] X-Spam-Level: X-Archive-Number: 200510/2 X-Sequence-Number: 28 On Monday 24 October 2005 15:33, Sawant, Nandu wrote: > Hello, > I have following Oracle script and trying to convert it for Postgres > syntax: > = = = = = = = = = = = = = = = > prompt Enter value for monyy (Month Year; Ex-mar02 indicating March > 2002) > define MONYY = &monyy > spool create_new_lerg_&MONYY._accounts.lst > prompt create user acc_&MONYY. > create user acc_&MONYY. > identified by lerg > temporary tablespace temp > default tablespace prices > quota unlimited on prices; > grant normal to acc_&MONYY.; > = = = = = = = = = = = = = = = > If I enter mar02 as a input for the defined variable MONYY, then it > creates the ACC_MAR02 user in the database. Is there any equivalent for > "define" statement in Postgres? Your help is appreciated. I don't think there is a natural equivilant for that in PostgreSQL. More to the point though, this mailing list is no longer active, so if you want real help, try posting to pgsql-general. -- Robert Treat Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL