• 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

database schema

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 338
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).
 
reply
    Bookmark Topic Watch Topic
  • New Topic