查看: 8327|回复: 5

dba_tables,dba_all_tables,user_tables,all_tables有什么区别

[复制链接]
论坛徽章:
0
跳转到指定楼层
1#
发表于 2008-3-28 15:49 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
请教,dba_tables,dba_all_tables,user_tables,all_tables有什么区别。
我查了一下,好像dba_all_tables是最多的纪录,description里描述的是dba_all_tables是所有object和retiaonal table,这个object包含什么呢?
论坛徽章:
138
19周年集字徽章-19
日期:2020-06-08 08:30:56马上加薪
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有车
日期:2014-02-19 11:55:14马上有房
日期:2014-02-18 16:42:022014年新春福章
日期:2014-02-18 16:42:02路虎
日期:2013-11-22 12:26:18问答徽章
日期:2014-05-08 12:15:31
2#
发表于 2008-3-28 15:57 | 只看该作者
SQL> create or replace type k as object(id int);
  2  /

类型已创建。

SQL> create table m of k;

表已创建。

SQL> select table_name from dba_tables where table_name='M';

未选定行

SQL>  select table_name from dba_all_tables where table_name='M';

TABLE_NAME
------------------------------
M

使用道具 举报

回复
论坛徽章:
0
3#
 楼主| 发表于 2008-3-28 16:17 | 只看该作者
呵呵,明白了,多谢!

使用道具 举报

回复
论坛徽章:
0
4#
发表于 2009-8-26 12:07 | 只看该作者
为什么 我要回复却说话题不存在......

使用道具 举报

回复
论坛徽章:
1
2010新春纪念徽章
日期:2010-03-01 11:04:58
5#
发表于 2009-8-26 21:23 | 只看该作者
每一次听说dba_all_tables,不过经常棉花糖的介绍,明白了

使用道具 举报

回复
论坛徽章:
1
2010新春纪念徽章
日期:2010-03-01 11:04:58
6#
发表于 2009-8-26 21:31 | 只看该作者
oracle官方文档的说明
1.DBA_ALL_TABLES describes all object tables and relational tables in the database. Its columns are the same as those in ALL_ALL_TABLES.

2.ALL_ALL_TABLES describes the object tables and relational tables accessible to the current user.

3.USER_ALL_TABLES describes the object tables and relational tables owned by the current user. Its columns (except for OWNER) are the same as those in ALL_ALL_TABLES.

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表