当前位置:Gxlcms > 数据库问题 > oracle 中如何查询当前用户可以看到的表名、表对应的所有字段

oracle 中如何查询当前用户可以看到的表名、表对应的所有字段

时间:2021-07-01 10:21:17 帮助过:38人阅读

t.table_name tableName, f.comments comments from user_tables t inner join user_tab_comments f on t.table_name = f.table_name

oracle 查询某表的所有字段 + 字段注释 + 字段类型

SELECT t.TABLE_NAME  tableName,
       t.COLUMN_NAME columnName,
       t.DATA_TYPE   dataType,
       a.COMMENTS
  FROM USER_TAB_COLUMNS t
  LEFT JOIN USER_COL_COMMENTS a
    ON t.table_name = a.table_NAME
   AND t.COLUMN_NAME = a.COLUMN_NAME

 

oracle 中如何查询当前用户可以看到的表名、表对应的所有字段

标签:前言   ora   div   data   相关信息   bsp   信息   inner   查询   

人气教程排行