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).