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

database schema

 
Shyam Sakalley
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 338
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic