Hi, apologies if this has been asked before. I did search but couldn't find anything.
We are using PLSQL v13 having previously been using a older version.
I want to use a variable in a where clause and also as a table name. In 9 we could define it once and use it in both. In 13 it is giving an error. The first select works but the second fails.
Note this is not the actual query i am using but one created simply to demonstrate the issue.
Am hoping there is a really simple fix that i am just not seeing.
Thanks in advance.
Chris
SELECT
& AS "my_Table"
FROM DUAL;
select column_name from sys.all_tab_columns where table_name = & and owner=user;
Select * from &;
We are using PLSQL v13 having previously been using a older version.
I want to use a variable in a where clause and also as a table name. In 9 we could define it once and use it in both. In 13 it is giving an error. The first select works but the second fails.
Note this is not the actual query i am using but one created simply to demonstrate the issue.
Am hoping there is a really simple fix that i am just not seeing.
Thanks in advance.
Chris
SELECT
& AS "my_Table"
FROM DUAL;
select column_name from sys.all_tab_columns where table_name = & and owner=user;
Select * from &;