SELECT A.COLUMN_NAME,B.comments,A.DATA_TYPE
FROM   USER_TAB_COLUMNS A
LEFT JOIN user_col_comments B ON A.TABLE_NAME=B.table_name AND A.COLUMN_NAME=B.column_name
WHERE  A.TABLE_NAME = '表名'
ORDER  BY A.COLUMN_ID;

获取表字段

select * 
from user_tab_columns 
where Table_Name='用户表' 
order by column_name

获取表注释

select * 
from user_tab_comments 
where Table_Name='用户表'

获取表字段注释

select * 
from user_col_comments 
where Table_Name='用户表'
order by column_name;

 

相关文章:

  • 2022-12-23
  • 2021-07-03
  • 2021-08-03
  • 2021-10-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-22
  • 2022-03-02
猜你喜欢
  • 2022-03-05
  • 2022-02-26
  • 2021-12-09
  • 2021-07-01
  • 2021-08-24
  • 2021-12-06
  • 2022-03-10
相关资源
相似解决方案