Oracle view table structure information

View table structure

select COLUMN_NAME,DATA_TYPE,DATA_LENGTH from user_tab_columns where table_name='表名';

view table comments

select * from user_tab_comments where Table_Name='表名';

View table field comments

select * from user_col_comments where Table_Name='表名';

View the index of the table

select t.*,i.index_type from user_ind_columns t,user_indexes i
where t.index_name = i.index_name and t.table_name = i.table_name
  and t.table_name = '表名';

Guess you like

Origin blog.csdn.net/weixin_43866250/article/details/124710867