We have to use stored procedure and parameterized cursor.
1) Write a stored procedure which takes table name as IN parameter.
2) Pass that table name as a parameter to cursor(using PARAMETERIZE CURSOR)
3) Fetch the rows u need
4) execute that procedure.
Hi praveen
I don't think table name can be passed as parameter to cursor. In this case we need to use ref-cursor .Am I right Do let me know.