Oracle: The Divine message from GOD

Categories

  • Tutorial

Monday, 15 April 2024

Reference Cursor

 

Create procedure (dept_in  Number,  emp_ref_cur  SYS_REFCURSOR)

IS
Begin

Open emp_ref_cur  FOR   select * from employees where dept_id = dept_in;

If emp_cur%rowcount = 0 Then

....

End if;


End;
/

Posted by Asheesh Dubey at 00:33
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ▼  2024 (34)
    • ►  November (1)
    • ►  October (5)
    • ►  September (2)
    • ►  August (2)
    • ►  May (1)
    • ▼  April (8)
      • Index usage with like operator and Domain Index
      • Dynamic sql
      • Reference Cursor
      • Bulk Exception with FORALL .. SAVE EXCEPTION
      • WHERE CURRENT OF Cursor Loop
      • Diagnose Performance Issue Using Dynamic v$Perform...
      • RANK & DENSE_RANK
      • Materialized View
    • ►  March (3)
    • ►  February (7)
    • ►  January (5)
  • ►  2023 (13)
    • ►  December (13)
  • ►  2016 (4)
    • ►  August (1)
    • ►  April (3)
  • ►  2014 (1)
    • ►  April (1)
  • ►  2012 (4)
    • ►  October (4)

About Me

Asheesh Dubey
View my complete profile

Categories

  • Tutorial
Simple theme. Theme images by luoman. Powered by Blogger.