Constrained and Unconstrained Cursor Variables Assignment Help

Assignment Help: >> Cursors - Constrained and Unconstrained Cursor Variables

Constrained and Unconstrained Cursor Variables:

The cursor variables in the previous section are constrained-they are defined for a specific return type only. When the variable is later opened that must be opened for a query whose select list matches the return type of the cursor.  If not then the predefined exception ROWTYPE_MISMATCH is raised.

PL/SQL, though, permits the declaration of unconstrained cursor variables. The unconstrained cursor variable does not have a RETURN clause. When an unconstrained cursor variable is later opened, that can be opened for any query. The subsequent declarative section defines an unconstrained cursor variable.

DECLARE

--TYPE t_FlexibleRef IS REF CURSOR;

v_CursorVar t_FlexibleRef;

Allocating and Controlling Cursor Variables Closing Cursor Variables
Example for using Constrained Cursors Opening a Cursor Variable for a Query
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd