Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.tools -> Re: variables in sql-statements
It is not possible to direct replace database objects such as tables, columns etc with variables.
To be able to use dynamic SQL you have to use either the package dbms_sql or 'execute immediate'.
Thomas