Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Reading column comments

Re: Reading column comments

From: Thomas Gaines <Thomas.Gaines_at_noaa.gov>
Date: Mon, 30 Dec 2002 18:01:27 -0700
Message-ID: <3E10EC67.31890F65@noaa.gov>


As with almost all Oracle dictionary tables, the names of column names, object names, etc. are capitalized when then go the dictionary, even if you refer to them uncapitalized.

You should do this instead:
SQL> select comments from dba_col_comments where table_name = 'ABC';

Bye,
TG

Dskdrv wrote:

> Question about column comments.
>
> SQL> create table abc
> 2 ( id1 int,
> 3 id2 int);
>
> SQL> comment on column abc.id1 is 'a comment';
>
> SQL> select comments from dba_col_comments where table_name = 'abc';
>
> The comment for abc.id1 is not found with the select.
> Question : Should the comment be in dba_col_comments ?
>
> Thanks
Received on Mon Dec 30 2002 - 19:01:27 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US