Re: Declaring constants in PG/PLSQL

From: Oliver Elphick <olly(at)lfix(dot)co(dot)uk>
To: Mark Hesketh <renmark(at)iprimus(dot)com(dot)au>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Declaring constants in PG/PLSQL
Date: 2002-01-21 15:20:19
Message-ID: 1011626421.3096.76.camel@linda
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Mon, 2002-01-21 at 14:37, Mark Hesketh wrote:
> Hi all,
>
> Can someone tell me if it's possible to globally scope my constants? How
> do I declare them for reuse? Don't tell me I have to keep defining them
> atop each function... :|

Why not create some functions that return your constants?

--
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C

"For we wrestle not against flesh and blood, but
against principalities, against powers, against the
rulers of the darkness of this world, against
spiritual wickedness in high places. Wherefore take
unto you the whole armour of God, that ye may be able
to withstand in the evil day, and having done all, to
stand." Ephesians 6:12,13

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Mark Bleeker 2002-01-22 11:02:43 automatically updated an attribute with the current time
Previous Message Jules Alberts 2002-01-21 14:56:34 Re: Declaring constants in PG/PLSQL