hola a todos (Auxilio!!!!!!!!!!!!!!)

From: Lina Ma Velasquez Hernandez <lmvelasq(at)unalmed(dot)edu(dot)co>
To: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
Cc: Esteban Gutierrez <ergutier(at)articlynx(dot)cl>, "Pablo E(dot) Siciliano" <psiciliano(at)puentenet(dot)com>, pgsql-es-ayuda(at)postgresql(dot)org
Subject: hola a todos (Auxilio!!!!!!!!!!!!!!)
Date: 2005-07-08 17:28:43
Message-ID: 13cc0713e7a2.13e7a213cc07@unalmed.edu.co
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda


<BODY><P>Hola a todos, en estos momentos estoy intentando crear una función que reciba como argumentos una columna y una tabla, para luego ejecutar alguna sentencia select, solicito su ayuda porque no encuentro información al respecto.<BR><BR>Por ejemplo:</P>
<P>CREATE OR REPLACE FUNCTION ancho_int(col float8, tab anyelement)<BR>RETURNS&nbsp;&nbsp; float8 AS $$</P>
<P>DECLARE <BR>ancho float8;<BR>column ALIAS FOR $1;<BR>tabl&nbsp; ALIAS FOR $2;</P>
<P>BEGIN<BR>EXECUTE SELECT (max(column)-min(column))/10 INTO ancho from tabl;<BR>RETURN ancho;</P>
<P>END;<BR>$$ LANGUAGE plpgsql;<BR><BR>Cualquier inforamción será bien recibida.<BR>Lina Marcela Velásquez Hernández <BR><BR><BR></P>
<P></P></BODY>

Attachment Content-Type Size
unknown_filename text/html 704 bytes

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Mario Soto Cordones - Venezuela 2005-07-08 17:57:00 Re: solicitud información
Previous Message nevaiot 2005-07-08 17:23:19 solicitud informaci ón