oracle查询当前用户的表名、表注释及所有字段
1、oracle 查询当前用户下的表名 + 表注释select t.table_name tableName, f.comments commentsfrom user_tables tinner join user_tab_comments fon t.table_name = f.table_name2、oracle 查询某表的所有字段 + 字段注释 + 字段类型SELECT t.TABLE_
·
1、oracle 查询当前用户下的表名 + 表注释
select t.table_name tableName, f.comments comments from user_tables t inner join user_tab_comments f on t.table_name = f.table_name
2、 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
更多推荐
已为社区贡献12条内容
所有评论(0)