Pessoal, queria saber se isso eh possível, excluir um registro que se
encontra no cursor que estou percorrendo, como no codigo abaixo:

for regCR in select * from contas_receber where id_venda = IdVenda
loop
    ...... 
       delete from contas_receber where id = regCR.id;
end loop
-- 
View this message in context: 
http://www.nabble.com/Exclus%C3%A3o-de-registro-dentro-de-For-..-loop-tp21750419p21750419.html
Sent from the PostgreSQL - Brasil mailing list archive at Nabble.com.

_______________________________________________
pgbr-geral mailing list
pgbr-geral@listas.postgresql.org.br
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a