constants

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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


[Index of Archives]     [Postgresql General]     [Postgresql Admin]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Backpacking]     [Postgresql Jobs]

  Powered by Linux