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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM