• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

tables

 
Ranch Hand
Posts: 235
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
I am not clear about this concept.
30 students have access to the same database (oracle), with different userid and password. We create our own tables. If two of us create a table using the same name, what happens? it is overlapped? How to differ these tables with the same name in the system?
Thanks
 
Author
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Simon,
if each of the users has its own database schema (with a special username and password), there will be no conflicts in table names. When you create a table logged on as user SOMEUSER in Oracle, the statement
<code>
CREATE TABLE SOMETABLE (
...
);
</code>
will actually be translated as
<code>
CREATE TABLE SOMEUSER.SOMETABLE (
...
);
</code>
but as you are already logged on as SOMEUSER, you may omit the user prefix.
So, as long as everyone is creating tables in his own schema, no conflicts should occur.
Cheers,
------------------
Bjarki Holm
Author of Professional Java Data
[This message has been edited by Bjarki Holm (edited June 12, 2001).]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic