pg.ddx.io  pgsql-chat@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Treat <xzilla@users.sourceforge.net>
To: pgsql-chat@postgresql.org
Cc: Sawant, Nandu <nandakumar.sawant@mitretek.org>
Subject: Re: Help for converting Oracle Script
Date: Mon, 24 Oct 2005 19:47:07 -0400
Message-ID: <200510241947.07461.xzilla@users.sourceforge.net> (raw)
In-Reply-To: <2E314DE03538984BA5634F12115B3A4E5C1646@email1.mitretek.org>
References: <2E314DE03538984BA5634F12115B3A4E5C1646@email1.mitretek.org>

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



view thread (2+ messages)

Message-ID: <200510241947.07461.xzilla@users.sourceforge.net>
Permalink:  ../200510241947.07461.xzilla@users.sourceforge.net/
Also on:    postgresql.org/message-id/200510241947.07461.xzilla@users.sourceforge.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-chat@postgresql.org
  Cc: xzilla@users.sourceforge.net, nandakumar.sawant@mitretek.org
  Subject: Re: Help for converting Oracle Script
  In-Reply-To: <200510241947.07461.xzilla@users.sourceforge.net>
  References: <2E314DE03538984BA5634F12115B3A4E5C1646@email1.mitretek.org> <200510241947.07461.xzilla@users.sourceforge.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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