易截截图软件、单文件、免安装、纯绿色、仅160KB

oracle查询问题

我要查询当前用户的所有表以及表注释的sql应该怎么写呢

select table_name,comment from user_tables

大家帮我看看这条sql错在哪里
user_tables里没有comment字段
想看注释的话
select * from user_tab_comments


SQL code:
SQL> select a.table_name,b.comments
2 from user_tables a,user_tab_comments b
3 where a.table_name=b.table_name;

TABLE_NAME COMMENTS
-------------------- --------------------
DEPT
EMP
BONUS
SALGRADE

SQL>


2楼的正确!

。。。我晕
既然b表也有table_name这个字段
为何还要去user_tables表中连接..

楼主表查询错了,应该是:
select table_name,comments from user_tab_comments



引用
user_tables里没有comment字段
想看注释的话
select * from user_tab_comments



学习

谢谢各位啦


相关问答:

delphi 怎么将oracle的long raw 字段值 导入blob字段

delphi 怎么将oracle的long raw 字段值 导入blob字段

http://blog.csdn.net/zxf_feng/archive/2008/12/21/3571961.aspx
看看这个

引用
            vStream := TMemorySt ......

lomboz eclipse 中加入oracle的问题

在lomboz eclipse中的window->show view->others->中的怎样加入connectivity中的data source中连接oracle时只有8,9,10这三个版本,怎样才能连接oracle11这个版本呢??????????????


......

求解 MyEclipse中设置连接Oracle 10g出现的问题

如题。
刚在自己的电脑里安装里Oracle 10g
用MyEclipse设置连接,出现如下错误提示,请问各位高手哪里出了问题:多谢指教!

Error while performing database login with the Oracle driver:
Io exc ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号