Skip to content

Instantly share code, notes, and snippets.

@RichVRed
Forked from ryanthames/column_info.sql
Created April 28, 2017 23:55
Show Gist options
  • Select an option

  • Save RichVRed/caa1c1e6cd3e8b24ce481e321066e8fb to your computer and use it in GitHub Desktop.

Select an option

Save RichVRed/caa1c1e6cd3e8b24ce481e321066e8fb to your computer and use it in GitHub Desktop.
select column_name, avg_col_len, num_distinct, num_nulls
from all_tab_columns
where table_name = '<<table name>>'
order by column_id desc;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment