Thursday, November 4, 2021

Difference between Cursor and Ref Cursor in Oracle APPS

  • A normal PL/SQL cursor is static in definition. Ref cursors may be dynamically opened based on some logic.
  • A cursor cannot be returned to a client. A Ref cursor can be returned to a client.
  • A cursor can be Global. A ref cursor cannot be Global.
  • A ref cursor can be passed from subroutine to subroutine. A cursor cannot be passed from subroutine.
  • Static SQL i.e. not using a Ref cursor is much more efficient then using ref cursors.

No comments:

Post a Comment

currentAppUi built in variable in VBCS

$global.currentAppUi.id :- The id of the App UI $global.currentAppUi.urlId :-The id of the App UI as shown in the URL $global.currentAppUi.d...