Re: Auxilio me botan del proyecto

From: Alex Concha <xkn0wn(at)yahoo(dot)com>
To: francyX <francyx(at)gmail(dot)com>, pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: Auxilio me botan del proyecto
Date: 2005-06-21 03:42:02
Message-ID: 20050621034202.84872.qmail@web52706.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

Hola,

--- francyX <francyx(at)gmail(dot)com> wrote:

> hola amigos de la lista tengo un problema con una
> funcion que
> insertas datos en una tabla de 14 campos me sale un
> error asi:
>
> ERROR: function sp_insercliente("unknown",
> "unknown", "unknown",
> integer, "unknown", "unknown", "unknown", "unknown",
> integer,
> "unknown", "unknown", "unknown", "unknown") does not
> exist
> HINT: No function matches the given name and
> argument types. You may
> need to add explicit type casts.
>
>

Qué tiene que ver una función con la otra?
Te manda el error sobre la función "sp_insercliente" y
mandas el código de "filtrocliente" :S

> y cual es el error en mi funcion:
>
>
> CREATE OR REPLACE FUNCTION filtrocliente(int4)
> RETURNS SETOF record AS
> '
> DECLARE
> rec record;
> BEGIN
> FOR rec IN select
>
Cliente.estado,Cliente.habitacion,Habitacion.tipo,Cliente.ingreso,Cuenta.totaldolares
> FROM Cliente LEFT OUTER JOIN Cuenta ON
> dbo.Cliente LEFT OUTER JOIN Cuenta ON
> Cliente.cod_cliente =
> Cuenta.cod_cliente INNER JOIN Habitacion ON
> Cliente.habitacion =
> Habitacion.numhabitacion
> Where Cliente.codigo Like rtrim($1)+'%' LOOP
> RETURN NEXT rec ;
> END LOOP;
> RETURN ;
> END;
> '
> LANGUAGE 'plpgsql' VOLATILE;
>
>
> un servicio men ya me botan del empleo les agradesco
> por anticipado su ayuda
>
> Francisco
>
> ---------------------------(fin del
> mensaje)---------------------------
> TIP 5: ¿Has leído nuestro extenso FAQ?
>
>
>
http://www.postgresql.org/files/documentation/faqs/FAQ.html
>

Alex Concha Abarca
_________________

Fac. Informática
Cusco - Perú

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

In response to

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Diego Ayala 2005-06-21 11:50:55 consulta
Previous Message Nahum Castro 2005-06-21 02:17:47 Re: Ayuda con migracion de datos