Re: row-specific conditions possible?

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

 



In response to Jörg Kiegeland :
> Hi,

This list, [Perform], is obviously the wrong list for such...

> 
> I want to store a boolean SQL condition in a column "condition_column" 
> of my table "myTable".
> This condition refers to other columns of the same table and shall use 
> one parameter, e.g. "column1=4 AND colume2+column3=param".
> Every row has a different condition in general..

maybe this blog-entry can help you:
http://akretschmer.blogspot.com/2007/10/postgresql-formula-in-column-how.html


For further questions ask me privat.


Andreas
-- 
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID:   0x3FFF606C, privat 0x7F4584DA   http://wwwkeys.de.pgp.net

-- 
Sent via pgsql-performance mailing list (pgsql-performance@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance

[Postgresql General]     [Postgresql PHP]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Yosemite]

  Powered by Linux