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: SQL syntax question

Re: SQL syntax question

From: Andy Hassall <andy_at_andyh.co.uk>
Date: Tue, 01 Feb 2005 23:09:46 +0000
Message-ID: <nq2001t861p97pqq0c74qfp96c9tc4ie50@4ax.com>


On 1 Feb 2005 14:26:18 -0800, "Sean" <seanm555_at_comcast.net> wrote:

>I have a statement that works on SQL server and doesn't on Oracle (v9):
>
>select FLD1, FLD2 from (select distict FLD1, FLD2, FLD3 from TBL1) As X
>
>Oracle error #93: SQL command not properly ended.
>
>What's the problem with the statement that Oracle doesn't like?...

 What's the actual SQL you tried to run? "distict" isn't going to work.  And error 93 is not the one you posted; "SQL command not properly ended" is error 933 (ORA-00933).

The error likely refers to the 'AS' at the end - Oracle doesn't allow the AS keyword when aliasing table names.

http://download-west.oracle.com/docs/cd/B14117_01/server.101/b10759/statements_10002.htm#i2126863

-- 
Andy Hassall / <andy@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Received on Tue Feb 01 2005 - 17:09:46 CST

Original text of this message

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