martes, 21 de mayo de 2013

Imprimir variable en PostgreSQL


-- select * from sp_imprimir_variable();

create or replace function sp_imprimir_variable()
returns void as $$
declare k int;
begin

k = 0;

while k <= 100 loop
RAISE NOTICE 'Procesando - % ', k;
k = k + 10;
end loop;
end;
$$ language plpgsql;

No hay comentarios:

Publicar un comentario