Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

invalid identifier - table name as bind input -single quote issue

User_U1SBGJul 7 2022 — edited Jul 7 2022

Hi Team,
Good Morning
SELECT table_name,
LISTAGG (DISTINCT column_name, ',')
WITHIN GROUP (ORDER BY column_name)
columns_available_in_the_table
FROM all_tab_cols where owner='ADMIN' and table_name= ''''||upper(&table_name)||''''
GROUP BY table_name;
ORA-00904: "SUPER_RR": invalid identifier

SELECT table_name,
LISTAGG (DISTINCT column_name, ',')
WITHIN GROUP (ORDER BY column_name)
columns_available_in_the_table
FROM all_tab_cols where owner='ADMIN' and table_name='SUPER_RR'
GROUP BY table_name;
this is working fine.

how to deal with a single quote here?

Comments
Post Details
Added on Jul 7 2022
1 comment
381 views