Skip to content
Advertisement

plsql parameterised cursor in which the parameter is user input

here’s my cursor statement

and call like this

The variable countryName is declared along with the cursors, and this query runs fine but no data is fetched. no idea what I’m missing here..

Advertisement

Answer

With some sample data like below:
A_TBL

ID COL_A COL_B
IE 01-NOV-22 1
UK 02-NOV-22 2
FR 03-NOV-22 3
IT 04-NOV-22 4

this code works…

Did you check your cursor’s FROM clause. There is no join condition between the tables employee and country. That or where condition (or both) coud be the reason that no rows were fetched…
Regards…

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement