Re: Parametros en Funciones

From: "Edwin Quijada" <listas_quijada(at)hotmail(dot)com>
To: systemguards(at)gmail(dot)com
Cc: pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: Parametros en Funciones
Date: 2006-07-04 13:40:32
Message-ID: BAY113-F17D8C1796962E6BC4B90C4E3710@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

>From: "Jaime Casanova" <systemguards(at)gmail(dot)com>
>To: "Jorge Martinez" <jlm4303(at)yahoo(dot)com(dot)ar>
>CC: pgsql-es-ayuda(at)postgresql(dot)org
>Subject: Re: [pgsql-es-ayuda] Parametros en Funciones
>Date: Thu, 29 Jun 2006 23:24:20 -0500
>
>>
>>CREATE OR REPLACE FUNCTION tomodat("char")
>> RETURNS bool AS
>>$BODY$
>>DECLARE
>> pp_lug ALIAS FOR $1;
>>BEGIN
>> delete from registem;
>> copy registem from pp_lug delimiters '|';
>> return true;
>>END;
>>$BODY$
>> LANGUAGE 'plpgsql' VOLATILE;
>>ALTER FUNCTION tomorel("char") OWNER TO postgres;
>>
>
>Adicionalmente a lo que te dijo Alvaro... si quieres enviar como
>parametro el nombre de la tabla el tipo "char" (char entre comillas)
>no es tu mejor opcion, es un postgres-ismo que sirve para guardar un
>solo caracter y ocupa un solo byte mejor deberias pasar tipo text
>
Uhmm.... No creo mejor pasalo tipo name. No me digas porque pero lo hacia
con text y varchar yt nunca funciono pero con name si lo hizo.

>--
>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
>
>---------------------------(fin del mensaje)---------------------------
>TIP 1: para suscribirte y desuscribirte, visita
>http://archives.postgresql.org/pgsql-es-ayuda

_________________________________________________________________
Visita MSN Latino Entretenimiento: ¡música, cine, chismes, TV y más...!
http://latino.msn.com/entretenimiento/

In response to

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Edwin Quijada 2006-07-04 13:42:35 RE: Activacion de trigger a una hora determinada
Previous Message Leonel Nunez 2006-07-04 12:56:11 Re: archivo postgresql.conf