易截截图软件、单文件、免安装、纯绿色、仅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



学习

谢谢各位啦


相关问答:

介绍Oracle和mysql的书 - Oracle / 非技术区

我对SQL SERVER和ACCESS比较熟,所以数据库的通用基础东西可以说都掌握的差不多了,我现在想要的就是以上两数据库的独特之处的介绍和应用介绍。
另外书最好对应最新版本 oracle是11g吧 10的也行;mysql是5.1吧
谢 ......

ORACLE数据库中的 group by 语句?

  with adod_dict do
    begin
    close;
    commandtext:='select bgqxcode,count(*) wjsl from wscl_wsda_file where wjnd=:tnd group by bgqxcode'; ......

Oracle 启动的问题

oracle not available
shared memory realm does not exist
请问高手这个问题如何解决?
http://www.inthirties.com/thread-109-2-1.html

指定下ORACLE_SID,ORACLE_HOME看看,不行就用1楼得方法了..

cm ......

oracle安装问题

1.
  在安装的时候安装的oracle 9i release。。。是否应该安装这个版本,再安装过程中出现oracle net configuration assistant配置模块,输入主机号和端口号以及sll端口号,不知道是什么问题。

2. ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号