Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesOracle Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old May 10th, 2004, 12:01 AM
DBStudent DBStudent is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 54 DBStudent User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 1 m 34 sec
Reputation Power: 5
Newbie to oracle database

I am using oracle9i. I create two tables in sqlplus with the following script:

--script start
create table test001(gnuid numeric);

create table "test002"(gnuid numeric);
--script end

the screen show that the tables are successfully created. Then when i try select the tables, the screen show "table or view not exist" for table test002, but the test001 is okay, return "no row selected".

Why this happen?

Reply With Quote
  #2  
Old May 10th, 2004, 07:23 AM
dhananjayshetty dhananjayshetty is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 24 dhananjayshetty User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 33 m 16 sec
Reputation Power: 0
just try using,

select * from "test002"
/

Reply With Quote
  #3  
Old May 10th, 2004, 03:42 PM
shammat shammat is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Oct 2003
Location: Munich, Bavaria
Posts: 972 shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 17 h 49 m 10 sec
Reputation Power: 57
If you use double quotes, Oracle will be case sensitiv when you select from that table (which complies with the ANSI SQL standard).

Don't use quotes and you'll be fine

Reply With Quote
  #4  
Old May 11th, 2004, 09:34 PM
DBStudent DBStudent is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 54 DBStudent User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 1 m 34 sec
Reputation Power: 5
>> just try using, select * from "test002"

Yes, this works.


>> Don't use quotes and you'll be fine

If quotes is not used, then the table name will be uppercased after creation. How to preserve the lower case for table name if i dont want to use quotes?

Thanks for all the reply.

Reply With Quote
  #5  
Old May 12th, 2004, 05:45 AM
shammat shammat is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Oct 2003
Location: Munich, Bavaria
Posts: 972 shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 17 h 49 m 10 sec
Reputation Power: 57
Quote:
Originally Posted by DBStudent
If quotes is not used, then the table name will be uppercased after creation. How to preserve the lower case for table name if i dont want to use quotes?


What's so important about the case of the table name. You are right, that if you don't use quotes, it will internally be stored in upper case.
So what?

Even if it is stored in upper case internally, you can use lower case table names, so where is the problem?

Reply With Quote
  #6  
Old May 12th, 2004, 07:59 PM
DBStudent DBStudent is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 54 DBStudent User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 1 m 34 sec
Reputation Power: 5
I am new to oracle. I have some experience in MySQL...
If a table named C01CUSTPROFILE is created in MySQL, and the OS is linux, then this query:

select * from C01CUSTPROFILE will return data or no data.

select * from c01custprofile will return a error from JDBC, a "unknown source error".

However this only happen in linux, in windows is ok.

I dont know whether this will apply to oracle in linux enviroment or not. I want to try this but unfortunately, there is limited resource(what i have is only oracle in windows).

Pls advise.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > Newbie to oracle database


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway