This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tables

 
Simon Xu
Ranch Hand
Posts: 235
  • Mark post as helpful
  • send pies
  • 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
 
Bjarki Holm
Author
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • 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).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic