File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tables

 
Simon Xu
Ranch Hand
Posts: 235
  • 0
  • 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
  • 0
  • 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).]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic