From: | "Jaime Casanova" <systemguards(at)gmail(dot)com> |
---|---|
To: | NachXs <nachxs(at)gmail(dot)com> |
Cc: | "List Postgresql" <pgsql-es-ayuda(at)postgresql(dot)org> |
Subject: | Re: Ayuda con Funcion en PostgreSQL |
Date: | 2007-06-21 02:51:47 |
Message-ID: | c2d9e70e0706201951p7f750a10t825d25a70a80f663@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-es-ayuda |
On 6/21/07, NachXs <nachxs(at)gmail(dot)com> wrote:
> Sres. de la lista buenas noches, la presente es para pedirle una ayudita en
> la migracion de un Store Procedure de ASE a una Funcion en PostgreSQL. Lo
> que pasa es que no tengo claro la parte en donde dice "RETURNS tipo_dato
> AS...", osea no se que tipo de dato asignar a "tipo_valor". Por ejemplo
> tengo esta funcion, mi duda es si ponerle INTEGER en la cabezera y la otra
> parte es despues del INSERT si ponerle RETURN 1 como se muestra, o debe ser
> otro tipo de dato, la cosa es que esta funcion solo inserta datos enviandole
> parametros desde una aplicacion, en este caso Power builder.
>
http://www.postgresql.org/docs/8.2/static/sql-createfunction.html
"
The return data type (optionally schema-qualified). The return type
may be a base, composite, or domain type, or may reference the type of
a table column. Depending on the implementation language it may also
be allowed to specify "pseudotypes" such as cstring. If the function
is not supposed to return a value, specify void as the return type.
"
RETURNS VOID AS
--
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
From | Date | Subject | |
---|---|---|---|
Next Message | Jaime Casanova | 2007-06-21 03:21:58 | Re: calcular tiempo de consulta en Postgres |
Previous Message | Espartano | 2007-06-21 02:40:29 | Re: diferencia entre fechas |