GoConqr has a new look! Let us know what you think.

Notes

cursor and record_cursor for loop_passing cursor btw procedures and function

Souravi Sinha oracle- PLSQL beginner English 1 page

Content of the notes (1)

Page 1

cursor and record

AS

cursor C is select names from sales where c_id=order_id;

c_record C%rowtype;

Begin

cursor for loop(no declaration statement for cursor or record is needed, and no opening and closing of cursor)

For c_var in (select names from sales where c_id=order_id)

loop

dbms_output.put_line('sales date'|| c_var.sales_date);

End loop;

passing cursor btw procedures and function

create or replace funtion get_names(

c_id IN number)

Return SYS_REFCURSOR

as

1_return SYS_REFCURSOR;

begin

open 1_return for (select names from sales where c_id=order_id);

return 1_return;

End ;

Information

Description
beginner oracle- PLSQL Note on cursor and record_cursor for loop_passing cursor btw procedures and function, created by Souravi Sinha on 27/02/2016.
Created by
Souravi Sinha · Feb 2016
Updated
Aug 10, 2016
Views
8
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?