Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Exemplo de cursor implicito (plpgsql)
- DO $$
- DECLARE
- registro RECORD; -- declaracao mais generica de uma linha, sem indicar tipos de dados
- BEGIN
- FOR registro IN
- SELECT *
- FROM staff
- LOOP
- raise notice '%', registro.first_name;
- END LOOP;
- END;
- $$;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement