如何找出所有非系统表的表名?请帮忙啊!

lzlng 2005-02-19 05:19:49
如题,谢谢!!
...全文
210 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
smallcrocodile 2005-02-22
  • 打赏
  • 举报
回复
select * from all_tables owner not in (SYS,SYSTEM,SCOTT,...)

不是系统表的就是用户表
chengtwn 2005-02-21
  • 打赏
  • 举报
回复
在ORACLE9下基本上筛选出来了
select * from dba_users
where default_tablespace<>'SYSTEM' and default_tablespace<>'SYSAUX'
lee_billiy 2005-02-20
  • 打赏
  • 举报
回复
只是查表名的话,select table_name from all_tables where owner = ?;就可以了
lee_billiy 2005-02-20
  • 打赏
  • 举报
回复
select * from all_tables where owner = ?;
wupangzi 2005-02-20
  • 打赏
  • 举报
回复
或者在all_tables中指定用户名!
wupangzi 2005-02-20
  • 打赏
  • 举报
回复
user_tables;
showmetoyou 2005-02-20
  • 打赏
  • 举报
回复
或者
select * from sysobjects where OBJECTPROPERTY(id, N'IsTable') = 1 and xtype<>N'S'
其实结果是一样的!对表来说,不是系统表,就是用户表啦!
showmetoyou 2005-02-20
  • 打赏
  • 举报
回复
下面是你想要的!
select * from sysobjects where OBJECTPROPERTY(id, N'IsTable') = 1 and xtype=N'U'

17,081

社区成员

发帖
与我相关
我的任务
社区描述
Oracle开发相关技术讨论
社区管理员
  • 开发
  • Lucifer三思而后行
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧