postgres a funkce

Jan Serak sherry na pikebo.cz
Úterý Září 19 09:24:14 CEST 2000


"Vitek Burda (noname2)" wrote:
> 
> zdravim!
> mam prob - proto pisu :)
> udelam na postgresu tohle:
> 
> create function getwin(int4) returns float8
> as 'select sum(prachy*kurz) as result from tabulka where tab_id = $1 and
> prachy > 1000' language 'sql';

select nvl(sum(prachy*kurz)),0) ...

nvl() je funkce z Oracle, ale rekl bych, ze v postgresu bude taky ;-)

					Jan Serak


Další informace o konferenci Test