v$fixed_table、dictionary、dict_columns
如何知道所使用的oracle数据库上有哪些数据字典(视图)呢?
其中一个方法是查询 v$fixed_table 或 dictionary
dictionary中只有两列 table_name 和 comments(注释)
v$fixed_table则不同,它有表名和表类型等,但没有注释
还有一个相关联的表是 dict_columns
它有3列:table_name, column_name, comments
如想查询user_tables中 table_name 列保存的是什么信息,
则可如下查询:
select * from dict_columns
where table_name='USER_TABLES' and column_name='TABLE_NAME'
;
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/26685854/viewspace-740446/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/26685854/viewspace-740446/