constants - Mailing list pgsql-php

From Shane Wright
Subject constants
Date
Msg-id 200202041400.g14E0oA11034@fullerruss.dsvr.co.uk
Whole thread Raw
Responses Re: constants
Re: constants
List 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

pgsql-php by date:

Previous
From: Frank Joerdens
Date:
Subject: Re: pg_pconnect - ??
Next
From: Chadwick Rolfs
Date:
Subject: Re: constants