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
ѧϰ
лл¸÷λÀ²
Ïà¹ØÎÊ´ð£º
»·¾³£º1.win2003server+oracle9i
2.oracle9i×Ö·û¼¯ÎªAMERICAN_AMERICA.WE8ISO8859P1
3.oracle sql developer°æ±¾ 1.5.5
ÏÖÏóÃèÊö: 1.ÔÚsql developer ÖвéѯoracleÖеÄij¸ö±í£¬ÖÐÎÄÈ«²¿ÏÔʾΪÂÒÂë¡£
......
with adod_dict do
begin
close;
commandtext:='select bgqxcode,count(*) wjsl from wscl_wsda_file where wjnd=:tnd group by bgqxcode'; ......
ÎÒÏÖÔÚÓÐһЩsasÉÏÃæµÄÊý¾ÝÎļþ ÏÖÔÚÎÒÐèÒª°Ñsasµ¼Èëµ½oracle
ÏÖÔÚ°ÑÒ»¸ösasÎļþµ¼Èëµ½Ò»¸öoracleÖеÄÒ»¸ö±íÖÐÎÒÒѾ֪µÀÔõôŪÁË
µ«ÊÇ ÎÒÏÖÔÚÐèÒª°ÑsasÖеÄÁíÒ»¸öÎļþ×·¼Óµ½oracleÖеÄÒ»¸öÓÐÊý¾ÝµÄÒ»¸ö±íÉÏà ......
ÈçÌâ¡£
¸ÕÔÚ×Ô¼ºµÄµçÄÔÀï°²×°ÀïOracle 10g
ÓÃMyEclipseÉèÖÃÁ¬½Ó£¬³öÏÖÈçÏ´íÎóÌáʾ£¬ÇëÎʸ÷λ¸ßÊÖÄÄÀï³öÁËÎÊÌ⣺¶àлָ½Ì£¡
Error while performing database login with the Oracle driver:
Io exc ......
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 ......