sexta-feira, 5 de outubro de 2007

NVL parte 2

Descobrimos depois o tipo anyelement, agora a função NVL pode ser escrita também da forma abaixo, dispensando a sobrecarga

CREATE OR REPLACE FUNCTION nvl (anyelement, anyelement) RETURNS anyelement AS
$body$
select coalesce($1,$2);
$body$ language 'sql';

Nenhum comentário:

by TemplatesForYouTFY
SoSuechtig, Burajiru