Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Brackets [] in AS statement not working?

2651686Apr 10 2014 — edited Apr 10 2014

Hi,

We have an application that in c# code automatically creates a query such as this;

SELECT

(KTOGR) AS [xval],

(round(sum(AU12 * -0.001),1)) AS [yval]

FROM Table

It works fine in SQL Server, but not in Oracle.

The problem seems to be AS [xval], where if we instead write;

AS xval

or

AS "xval"

then it works.

But we would like not to change the behavior of our c# code, if possible.

According to Oracle documentation [] is valid charaters in the select statement, but as it seems when we try it out - not in the "AS" part of the statement.

Is there some setting or similar in Oracle where it is possible to define that [] should work in the AS part of a select statement?

/Erik

This post has been answered by Karthick2003 on Apr 10 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 8 2014
Added on Apr 10 2014
5 comments
1,854 views