oracle 查询 所有表名及表名对应字段 字段类型可进行指定

SELECT table_name,column_name,data_type FROM user_tab_columns
where data_type in ('VARCHAR2','CHAR','NCHAR','NCLOB','NVARCHAR2')
and table_name not like 'RPT_STAT_%'
and table_name not like 'TMP_%'
and table_name not like 'DV%'
and table_name <> 'gh'
and table_name <> 'gjxwbjb'
and table_name <> 'gxfs'
and table_name <> 'rsj'
and table_name in (select table_name from user_tables)
order by table_name

posted @ 2020-04-16 15:31  加菲猫and大白  阅读(1050)  评论(0编辑  收藏  举报