Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- FUNCTION: public.f()
- -- DROP FUNCTION IF EXISTS public.f();
- CREATE OR REPLACE FUNCTION public.f(
- )
- RETURNS void
- LANGUAGE 'plpgsql'
- COST 100
- VOLATILE PARALLEL UNSAFE
- AS $BODY$
- begin
- FOR i IN 1..10 LOOP
- raise notice '%', i; -- i will take on the values 1,2,3,4,5,6,7,8,9,10 within the loop
- END LOOP;
- end;
- $BODY$;
- ALTER FUNCTION public.f()
- OWNER TO postgres;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement