constants

Поиск
Список
Период
Сортировка
От Shane Wright
Тема constants
Дата
Msg-id 200202041400.g14E0oA11034@fullerruss.dsvr.co.uk
обсуждение исходный текст
Ответы Re: constants  (Chadwick Rolfs <cmr@shell.gis.net>)
Re: constants  (Frank Bax <fbax@sympatico.ca>)
Список 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 по дате отправления:

Предыдущее
От: Frank Joerdens
Дата:
Сообщение: Re: pg_pconnect - ??
Следующее
От: Chadwick Rolfs
Дата:
Сообщение: Re: constants