Dynamic Variable in Cursor in Oracle stored procedure
问题 Need help in passing dynamic variable (table name) in cursor in Oracle stored procedure. My stored procedure: CREATE OR REPLACE PROCEDURE ABCDEF (TBL_NAME IN VARCHAR) IS CURSOR CUR IS SELECT * FROM TABLEA BEGIN FOR rec IN CUR LOOP . . . END I NEED THIS TABLEA in cursor to be replaced by TBL_NAME variable. I tried to make the cursor statement as executable statement but it didn't help me. Suggestions, please 回答1: Made this working using part of the solution above. Thanks for the suggestions.