Oracle
 sql >> Base de Dados >  >> RDS >> Oracle

Oracle:Encontrando colunas com apenas valores nulos

SELECT  t.column_name
FROM    user_tab_columns t
WHERE   t.nullable = 'Y'
        AND t.table_name = 'YOUR_TABLE_NAME'
        AND t.num_distinct = 0