1、通过表注释
all_tab_comments(表的所有者、表名、表类型、表注释)字段:OWNER/ TABLE_NAME/ TABLE_TYPE/ COMMENTS
select table_name from all_tab_comments t where t.owner = '' and comments like '%%';
2、通过表字段
user_tab_columns(表/视图或Clusters名称、字段名、列ID、字段类型、长度、精度、小数点后位数、是否允许为空、密度、为空的个数、distinct个数。。。)
字段:OWNER/ TABLE_NAME/ COLUMN_NAME/ COLUMN_ID/ DATA_TYPE/ DATA_LENGTH/ DATA_PRECISION/ DATA_SCALE/ NULLABLE/ DEFAULT_LENGTH/
DENSITY/ NUM_NULLS/ NUM_BUCKETS/ LAST ANALYZED/ CHAR_COL_DEFAULT_LENGTH/ AVG_COL_LEN/ HISTOGRAM
select * from user_tab_columns where column_name LIKE '%FX%' and data_type = 'VARCHAR2';
dba_tab_columns(表的所有者、表/视图或Clusters名称、字段名、列ID、字段类型、长度、精度、小数点后位数、是否允许为空、密度、为空的个数、distinct个数。。。)
字段:TABLE_NAME/ COLUMN_NAME/ COLUMN_ID/ DATA_TYPE/ DATA_LENGTH/ DATA_PRECISION/ DATA_SCALE/ NULLABLE/ DEFAULT_LENGTH/
DENSITY/ NUM_NULLS/ NUM_BUCKETS/ LAST ANALYZED/ CHAR_COL_DEFAULT_LENGTH/ AVG_COL_LEN/ HISTOGRAM
select * from dba_tab_columns where column_name LIKE '%FX%' and data_type = 'VARCHAR2' and owner = 'GS_CXTDDJ';
3、通过表其他信息
all_tables(表的所有者、表名、在此分区中已使用的数据块数量)
字段:OWNER/ TABLE_NAME/ TABLESPACE_NAME/ BLOCKS/
select* from all_tables where table_name like '%FX%' and blocks>10 and owner='GS_CXTJ' order by block;