Skip to Main Content

Breadcrumb

Question and Answer

Tom Kyte

Thanks for the question, Steve.

Asked: April 15, 2014 - 4:55 pm UTC

Last updated: April 15, 2014 - 10:04 pm UTC

Version: 11.2

Viewed 1000+ times

You Asked

I saw "the" in aSQL from java code and I thought it was a mistake, but it wasn't:

>select eamrid, action_code, fault_msg,  execution_time, timeout_value
  2  from ( select cast( pkg_ode.parse_response('METERREADINGS', '1.4', :v_xml ) as odeXML ) from dual ) a;
select eamrid, action_code, fault_msg,  execution_time, timeout_value
                                                        *
ERROR at line 1:
ORA-00904: "TIMEOUT_VALUE": invalid identifier

>select eamrid, action_code, fault_msg,  execution_time, timeout_value
  2  from the ( select cast( pkg_ode.parse_response('METERREADINGS', '1.4', :v_xml ) as odeXML ) from dual ) a;

    EAMRID ACTION_CODE                                        FAULT_MSG  EXECUTION_TIME    TIMEOUT_VALUE
---------- -------------------------------------------------- ---------- ----------------- -------------
        46 RESPONDED                                          {n}        {n}                           0



Is "the" a keyword or do something special? I couldn't find it listed anywhere in Oracle docs as one and searching the web for it is pretty useless, but I tried.

Thanks,
Steve

and Tom said...

it is deprecated code. It works, but it is very old.

The TABLE clause supercedes this. "THE" was used in 8.0 when object relational features where first introduced in the database and fell out of use during Oracle8i release 1.


I used it in this very very old (14 year old as of this writing :) ) question on asktom

https://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:110612348061

Rating

  (2 ratings)

Is this answer out of date? If it is, please let us know via a Comment

Comments

Good to know.

Steve, April 16, 2014 - 11:01 pm UTC

We are on 11g and it does seem to work.
Thanks.

Q THE DATE TABLE

Duke Ganote, April 19, 2014 - 1:21 pm UTC