I want a query that returns me name of columns of a table.
I tried following query -
SELECT column_name ColName
FROM all_tab_columns
WHERE table_name ='<TABLENAME>';
but this query is returning duplicate column names.
I do not want to use distinct
in my query cause it hampers the performance.
So is there a query which returns columns of a table without any duplicate.