📅  最后修改于: 2022-03-11 15:05:10.681000             🧑  作者: Mango
select COLUMN_NAME
from sys.all_tab_columns col
inner join sys.all_tables t on col.owner = t.owner
and col.table_name = t.table_name
where
col.table_name = 'REPLACE THIS WITH YOUR TABLE NAME'
AND NUM_DISTINCT > 0
order by col.column_id;