From: Shane Wright <me@shanewright.co.uk>
To: pgsql-php@postgresql.org
Subject: constants
Date: Mon, 4 Feb 2002 14:00:03 +0000
Message-ID: <200202041400.g14E0oA11034@fullerruss.dsvr.co.uk> (raw)
Hi
This may be the wrong list to ask this, apologies if so :)
Anyway, is there any way to define constants in PostgreSQL - my app has lots
of them at the PHP level, but it'd be nice to use them directly in the SQL
without overly complex query building.
Something like this...
DEFINE CONSTANT MYCONST = 4;
SELECT * FROM mytable WHERE myfield=MYCONST;
Thanks
--
Shane
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-php@postgresql.org
Cc: me@shanewright.co.uk
Subject: Re: constants
In-Reply-To: <200202041400.g14E0oA11034@fullerruss.dsvr.co.uk>
References: <200202041400.g14E0oA11034@fullerruss.dsvr.co.uk>
* 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