Oracle export table structure information

select u.table_name table name, u.column_name field name, a.DATA_TYPE field type, a.DATA_LENGTH field length, u.comments comment from user_col_comments u,all_tab_columns a

where u.table_name=a.TABLE_NAME and a.OWNER='XMUEDU' and u.column_name=a.COLUMN_NAME --and a.TABLE_NAME= 'BASIC_CODE'

order by u.table_name

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326709934&siteId=291194637