aspose file tools*
The moose likes Oracle/OAS and the fly likes database schema Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Oracle/OAS
Bookmark "database schema" Watch "database schema" New topic
Author

database schema

Shyam Sakalley
Greenhorn

Joined: Oct 05, 2008
Posts: 23
Hi all,

I have confuse in Schema because I am working on the DB28.2 so in that when we create any table in database that time it asked about the select schema and by default it gives scheams like
(1) NULLID schema
(2) USER schema
(3) SQLJ schema

so in which type of situation should we go for which type of schema and which is better over all ....

SHYAM SAKALLEY
Paul Campbell
Ranch Hand

Joined: Oct 06, 2007
Posts: 338
Originally posted by Shyam Sakalley:
Hi all,

I have confuse in Schema because I am working on the DB28.2 so in that when we create any table in database that time it asked about the select schema and by default it gives scheams like
(1) NULLID schema
(2) USER schema
(3) SQLJ schema

so in which type of situation should we go for which type of schema and which is better over all ....

SHYAM SAKALLEY


I don't think there it is a matter of one performing better than another that you're asking... you just need the one that connects you to the desired tables (since different schemas can have similar/same table names).

The format is simply (in your FROM clause) schema.table (and optionally any alias you may need to use to eliminate ambiguity).

You do not need to use the schema name if the user logged into the data base is the owner of the schema with the tables you are using for your query (i.e., FROM table instead of FROM schema.table).
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: database schema