Report table columns and comments

Report table columns and comments:
select tc.table_name, tc.column_name, tc. data_type, tc.nullable, nullif(cc.comments, '')
from all_tab_columns tc, all_col_comments cc
where tc.owner = cc.owner
and tc.column_name = cc.column_name
and tc.table_name = cc.table_name
and tc.owner = 'OSL'
and tc.table_name like 'OSL_%';

你可能感兴趣的:(oracle)