Parameterized Cursors v11
A user can also declare a static cursor that accepts parameters, and can pass values for those parameters when opening that cursor. In the following example we have created a parameterized cursor which will display the name and salary of all employees from the emp
table that have a salary less than a specified value which is passed as a parameter.
So for example if we pass the value 2000 as max_wage
, then we will only be shown the name and salary of all employees that have a salary less than 2000. The result of the above query is the following: