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
学习
谢谢各位啦
相关问答:
<?php
getenv("ORACLE_HOME");
$conn=ocilogon("test","test","test_db");
if($conn)
echo success;
&nb ......
delphi 怎么将oracle的long raw 字段值 导入blob字段
http://blog.csdn.net/zxf_feng/archive/2008/12/21/3571961.aspx
看看这个
引用
vStream := TMemorySt ......
安装11g的06,打补丁升到07,从ODBC里面看,有
Oracle in OraOdac11g_home1 11.01.00.07
从注册表看HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\下面的Driver和Setup都是我的安装路径
"D:\\app\\Ad ......
在lomboz eclipse中的window->show view->others->中的怎样加入connectivity中的data source中连接oracle时只有8,9,10这三个版本,怎样才能连接oracle11这个版本呢??????????????
......
select A_NM || '----' || B_NM
from (select distinct a.sttn_nm a_nm, b.sttn_nm b_nm
from tb_sttn a, tb_sttn b
whe ......