If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Oracle > Table with Space

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-31-03, 00:27
NoviceNo1 NoviceNo1 is offline
Registered User
 
Join Date: Jan 2003
Location: Woking
Posts: 107
Table with Space

Hi,
We have a requirement to create a table with a space in the table name.
We were able to do it. but do we select from such a table.

SQL used to create the table is
CREATE TABLE "NEW EMP" AS SELECT * FROM EMP

SELEC * FROM "NEW EMP"
This SQL does not work

Please advise.

Thanks
__________________
nn
Reply With Quote
  #2 (permalink)  
Old 01-31-03, 04:42
berxh3g berxh3g is offline
Registered User
 
Join Date: Jan 2003
Location: Vienna, Austria
Posts: 102
Re: Table with Space

i could not reproduce your problem:

Connected to:
Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
With the Partitioning option
JServer Release 8.1.7.0.0 - Production

SQL> create table "BX TEST" (ch char);

Table created.

SQL> select * from "BX TEST";

no rows selected

SQL> drop table "BX TEST";

Table dropped.

SQL>
can you give some more details? (version, error-messages, ...)
__________________
^/\x
Reply With Quote
  #3 (permalink)  
Old 01-31-03, 05:24
NoviceNo1 NoviceNo1 is offline
Registered User
 
Join Date: Jan 2003
Location: Woking
Posts: 107
Re: Table with Space

Quote:
Originally posted by berxh3g
i could not reproduce your problem:

Connected to:
Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
With the Partitioning option
JServer Release 8.1.7.0.0 - Production

SQL> create table "BX TEST" (ch char);

Table created.

SQL> select * from "BX TEST";

no rows selected

SQL> drop table "BX TEST";

Table dropped.

SQL>
can you give some more details? (version, error-messages, ...)
hi,
Thanks berxh3g.
When a table is created with double quotes, the table name is
case sensitive.
i was unaware of this and i was trying "new emp" instead of
"NEW EMP".
Thanks anyways.
__________________
nn
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On