Skip to main content

Posts

Showing posts with the label Explicit Cursor and For Cursor Loop with examples

Explicit Cursor and For Cursor loop with Examples in PL/SQL Anonymous Block #DOTC_mdb

  Explicit Cursor and For Cursor loop with Examples in PL/SQL Anonymous Block. Hello Everyone, Today we will see some examples of both Explicit and FOR CURSOR loop with some practical examples in Oracle PL/SQL Anonymous Block. Please see my previous blogs where I discussed about syntax and some basic examples of Cursor and also idea about %type and % rowtype uses in PL/SQL block for your reference. https://dheeraj60.blogspot.com/2020/05/cursor-in-database-and-importance-of.html https://dheeraj60.blogspot.com/2020/05/benefits-and-advantage-of-using-type.html   Now let’s start first with explicit cursor with one Program, as we know in Explicit Cursor programmers are allowed to create named context area to execute their DML operations to get more control over it. Explicit cursor is created on a SELECT Statement which returns more than one row. We can provide a suitable name for the cursor for reference so that we can use that cursor name in PL/SQL block. The steps involved...