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

Home -> Community -> Usenet -> c.d.o.server -> Re: INNER JOIN syntax not supported?

Re: INNER JOIN syntax not supported?

From: Tom Best <tom.best_at_bentley.com>
Date: 2000/06/06
Message-ID: <8hiv41$g8i$1@news.bentley.com>#1/1

Roal:

There is no "INNER JOIN" syntax in Oracle. An inner join is really another name for an equijoin, which is what happens when you say:

    ... WHERE table1.col = table2.col

Access embelished this syntax a little bit - it does make it a bit easier to parse and figure out what tables are being joined to what. So your stmt should be:

    SELECT * FROM table1, table2 where table1.id1 = table2.id2

HTH. Tom

Roal Zanazzi <roal.zanazzi_at_sefin.com> wrote in message news:8histr$n30$1_at_lacerta.tiscalinet.it...
> Hi everyone,
>
> I'm porting an Access database to Oracle 8i (8.1.5).
> On the client side (a Visual Basic application with MS ADO library) I've a
> bunch o queries with INNER JOIN between 2 (or more) tables.
> An example of such queries is:
> SELECT * FROM table1 INNER JOIN table2 ON table1.id1 = table2.id2;
>
> If I run this query in SQL*PLUS it gives me the following error:
> ORA-00933: SQL command not properly ended
> on the J of JOIN.
>
> This is standard SQL syntax (ISO and, afaik, ANSI), but Oracle doesn't
> support it.
> Is this true? (on-line manual says nothing about INNER...)
>
> Am I going to change _every_ query containing the new JOIN syntax?
>
> Roal Zanazzi
>
>
>
Received on Tue Jun 06 2000 - 00:00:00 CDT

Original text of this message

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