Re: Funcion con IF - ELSE

From: "Jaime Casanova" <systemguards(at)gmail(dot)com>
To: "Alexander Quilca" <alquilca(at)hotmail(dot)com>
Cc: pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: Funcion con IF - ELSE
Date: 2006-09-13 05:01:47
Message-ID: c2d9e70e0609122201q48c29edfq40e487db018d3bd5@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

On 9/12/06, Alexander Quilca <alquilca(at)hotmail(dot)com> wrote:
> CREATE OR REPLACE FUNCTION "FN_R_GESTOR" (ptipo varchar , pcriterio varchar)
> RETURNS SETOF "TP_FN_R_GESTOR" AS
> $body$
> DECLARE
> mres "TP_FN_R_GESTOR";
> BEGIN
>
> IF (UPPER(ptipo)='T') THEN -- Trabajadores
>
> BEGIN

Ademas, me parece que tienes un BEGIN de mas...

--
Atentamente,
Jaime Casanova

"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs and the universe trying
to produce bigger and better idiots.
So far, the universe is winning."
Richard Cook

In response to

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Jaime Casanova 2006-09-13 05:23:46 Re: como consultar por fechas en postgre desde vb?
Previous Message Jaime Casanova 2006-09-13 04:54:04 Re: ampliar fisicamente