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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: ora-904 invalid column name

RE: ora-904 invalid column name

From: Fink, Dan <Dan.Fink_at_mdx.com>
Date: Fri, 04 Oct 2002 12:23:40 -0800
Message-ID: <F001.004E1395.20021004122340@fatcity.com>


Rick,

        What is the underlying view statement? I have found that there is an object resolution difference between selecting individual columns and *. I'm exploring exactly what happens, but the same issue can be found in v$sort_usage, where there is a column USER (which is both a reserved word and a function).

Dan Fink

-----Original Message-----
Sent: Friday, October 04, 2002 2:06 PM
To: Multiple recipients of list ORACLE-L

Hi All,

Oracle 8.1.6, WinNT

I have view TIMEVIEW. I can do select * from timeview with no errors. If I select a individual column I get 904 error. I am doing everything from the schema owner. Any hints

SQLWKS> desc timeview

Column Name                    Null?    Type
------------------------------ -------- ----
NAS_IP_ADDRESS                 NOT NULL VARCHAR2(255)
CALLED_STATION_ID                       VARCHAR2(255)
CALLING_STATION_ID                      VARCHAR2(255)
ACCT_INPUT_OCTETS                       NUMBER(38)
ACCT_OUTPUT_OCTETS                      NUMBER(38)
USER_NAME                               VARCHAR2(255)
ST                                      NUMBER
MT                                      VARCHAR2(3)
SQLWKS> select mt from timeview;
select mt from timeview

               *
ORA-00904: invalid column name

Thanks
Rick

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author:
  INET: Rick_Cale_at_teamhealth.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Fink, Dan
  INET: Dan.Fink_at_mdx.com
Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Fri Oct 04 2002 - 15:23:40 CDT

Original text of this message

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