From: | Jaime Vera Sobino <jverasobino(at)gmail(dot)com> |
---|---|
To: | pgsql-es-ayuda(at)postgresql(dot)org |
Subject: | Funciones en PgAdmin III ... |
Date: | 2005-10-01 15:14:32 |
Message-ID: | 657eae1d05100108144caeb68c@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-es-ayuda |
hola lista
estoy empezando a aprender plpgsql y lo estoy haciendo con le programa pgadmin 3
pero cuando quise hacer un ejercicio basico :
CREATE FUNCTION get_hda_id() RETURNS "varchar" AS
'DECLARE
quantity INTEGER := 30;
BEGIN
RAISE NOTICE \'\'Quantity here is %\'\', quantity; -- Quantity here is 30
quantity := 50;
--
-- Create a subblock
--
DECLARE
quantity INTEGER := 80;
BEGIN
RAISE NOTICE \'\'Quantity here is %\'\', quantity; --
Quantity here is 80
END;
RAISE NOTICE \'\'Quantity here is %\'\', quantity; -- Quantity here is 50
RETURN quantity;
END;'
LANGUAGE 'sql' STABLE;
me dice que tengo error en el integer el primer "quantity" (el del declare)
realmente no entiendo que esta mal
alguien me podria explicar si tiene una pilleria o algo ???
gracias.
--
Jaime Vera Sobino
From | Date | Subject | |
---|---|---|---|
Next Message | Pablo Cruz Navea | 2005-10-01 15:29:00 | Encriptación de columnas |
Previous Message | Leticia Gimenez | 2005-10-01 15:08:34 | Tablespace en Postgres 8 for windows |