| From: | "Jaime Casanova" <systemguards(at)gmail(dot)com> |
|---|---|
| To: | "Chapilliquen Gutierrez Eduardo" <ECHAPILLIQUEN(at)minem(dot)gob(dot)pe> |
| Cc: | pgsql-es-ayuda(at)postgresql(dot)org |
| Subject: | Re: Ayuda con Función |
| Date: | 2007-06-19 00:57:42 |
| Message-ID: | c2d9e70e0706181757p15400d09wfcd2e64e22427a3b@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-es-ayuda |
On 6/18/07, Chapilliquen Gutierrez Eduardo <ECHAPILLIQUEN(at)minem(dot)gob(dot)pe> wrote:
> Estoy creando una función pero me esta devolviendo un error 42601 (error de sintaxis), me indica que es el varchar
> pero no veo nada extraño en la declaración de la variable. alguien podría ayudarme. el siguiente es mi función
>
>
> CREATE OR REPLACE FUNCTION sp_carga_rt() RETURNS integer As '
> DECLARE
> larchivo varchar(14);
> BEGIN
[... cuerpo de la funcion ...]
> END;'
> LANGUAGE 'sql';
>
esta es la estructura de una funcion plpgsql no sql, prueba cambiando por
LANGUAGE 'plpgsql'
--
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-19 02:09:46 | Re: Ejecutar \copy desde VB |
| Previous Message | Jaime Casanova | 2007-06-19 00:55:04 | Re: calcular tiempo de consulta en Postgres |