constants

From: Shane Wright <me(at)shanewright(dot)co(dot)uk>
To: pgsql-php(at)postgresql(dot)org
Subject: constants
Date: 2002-02-04 14:00:03
Message-ID: 200202041400.g14E0oA11034@fullerruss.dsvr.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

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

Responses

Browse pgsql-php by date

  From Date Subject
Next Message Chadwick Rolfs 2002-02-04 19:48:21 Re: constants
Previous Message Frank Joerdens 2002-02-02 19:41:12 Re: pg_pconnect - ??