background
- There is a need to check all the tables in the Oracle database interfaces and export excel, recording method as follows
use
- Use PLSQL table structure query tool, SQL statements, as follows
The SELECT B.TABLE_NAME the AS ' table ' , C.COMMENTS the AS ' table shows ' , B.COLUMN_ID the AS ' field ID ' , B.COLUMN_NAME the AS ' field name ' , B.DATA_TYPE the AS ' field data type ' , B.DATA_LENGTH the AS ' data length ' , B.DATA_PRECISION the AS ' bit integer ' , B.DATA_SCALE the AS ' decimals', A.COMMENTS AS '字段说明' FROM ALL_COL_COMMENTS A, ALL_TAB_COLUMNS B, ALL_TAB_COMMENTS C WHERE A.TABLE_NAME IN (SELECT U.TABLE_NAME FROM USER_ALL_TABLES U) AND A.OWNER = B.OWNER AND A.TABLE_NAME = B.TABLE_NAME AND A.COLUMN_NAME = B.COLUMN_NAME AND C.TABLE_NAME = A.TABLE_NAME AND C.OWNER =A.OWNER the AND A.OWNER = ' xxx_db_name ' - wherein DB is the user name xxx_db_name the AND A.TABLE_NAME like ' %% xxx_table_name ' - xxx_table_name table name the ORDER BY A.TABLE_NAME, B.COLUMN_ID;
- Query results are as follows
- Export to excel
- Next