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;
pgsql-php by date
|Next:||From: Chadwick Rolfs||Date: 2002-02-04 19:48:21|
|Subject: Re: constants|
|Previous:||From: Frank Joerdens||Date: 2002-02-02 19:41:12|
|Subject: Re: pg_pconnect - ??|