Can I pass an explicit cursor to a function/procedure for use in FOR loop?

后端 未结 4 1113
时光说笑
时光说笑 2021-01-12 02:59

I have a procedure that performs some calculations on all records returned by a cursor. It looks a bit like this:

PROCEDURE do_calc(id table.id_column%TYPE)
         


        
4条回答
  •  -上瘾入骨i
    2021-01-12 03:54

    Yes you can use Cursor explicitly into procedure and function,for that cursor need to declare into package as variable

提交回复
热议问题