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: Reserved names as column names

Re: Reserved names as column names

From: DA Morgan <damorgan_at_x.washington.edu>
Date: Mon, 03 Jan 2005 09:29:27 -0800
Message-ID: <41d97fcb$1_4@127.0.0.1>


Robert Wehofer wrote:

> Hello there!
>
> How can I select a table having a reserved word as column name?
>
> Example:
> SELECT TABLE FROM TABLENAME; // does not work
> SELECT "TABLE" FROM TABLENAME; // does not work
>
> Regards,
> Robert

As Mark indicates use double quotes.
But keep in mind this will not work with report writers and many third-party tools. Best to rename those columns ASAP.

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu
(replace 'x' with 'u' to respond)
Received on Mon Jan 03 2005 - 11:29:27 CST

Original text of this message

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