Hi everybody,
I am trying to create a stored procedure which can process different tables. The general idea is to make something like this:
However such a construct gives me the following error:
PL/SQL: ORA-00942: table or view does not exist
Can anyone tell me a way around?
Thanks,
Alex
I am trying to create a stored procedure which can process different tables. The general idea is to make something like this:
Code:
CREATE OR REPLACE PROCEDURE my_proc
(
field_name in VARCHAR2,
tbl_name in VARCHAR2
)
AS
value NUMBER;
BEGIN
...
SELECT field_name INTO value
FROM tbl_name ...
...
END;
However such a construct gives me the following error:
PL/SQL: ORA-00942: table or view does not exist
Can anyone tell me a way around?
Thanks,
Alex