GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Notizen

cursor and record_cursor for loop_passing cursor btw procedures and function

Souravi Sinha oracle- PLSQL beginner Englisch 1 Seite

Inhalt der Notizen (1)

Seite 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 ;

Informationen

Beschreibung
beginner oracle- PLSQL Notiz am cursor and record_cursor for loop_passing cursor btw procedures and function, erstellt von Souravi Sinha am 27/02/2016.
Erstellt von
Souravi Sinha · Feb 2016
Aktualisiert
10 Aug 2016
Aufrufe
8
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck