Accessing tables of other users in SQL
Accessing tables of other users in SQL
Provided that a user has the privilege to access tables of other users (see also Section 3), she/he can refer to these tables in her/his queries. Let <user> be a user in the Oracle system and <table> a table of this user. This table can be accessed by other (privileged) users using the command
select from <user>.<table>;
In case that one often refers to tables of other users, it is useful to use a synonym instead of <user>.<table>. In Oracle-SQL a synonym can be created using the command
create synonym <name> for <user>.<table> ;
It is then possible to use simply <name> in a from clause. Synonyms can also be created for
one’s own tables.
select from <user>.<table>;
In case that one often refers to tables of other users, it is useful to use a synonym instead of <user>.<table>. In Oracle-SQL a synonym can be created using the command
create synonym <name> for <user>.<table> ;
It is then possible to use simply <name> in a from clause. Synonyms can also be created for
one’s own tables.
Similar topics
» Creating Tables in SQL
» How To List All Tables in Your Schema?
» How To Get a List of All Tables in the Database?
» How Many Types of Tables Supported by Oracle?
» How To View the Dropped Tables in Your Recycle Bin?
» How To List All Tables in Your Schema?
» How To Get a List of All Tables in the Database?
» How Many Types of Tables Supported by Oracle?
» How To View the Dropped Tables in Your Recycle Bin?
Permissions in this forum:
You cannot reply to topics in this forum
Sun Jan 31, 2010 12:35 am by Micheal
» Accessing tables of other users in SQL
Sun Jan 31, 2010 12:34 am by Micheal
» Grouping commands in SQL
Sun Jan 31, 2010 12:32 am by Micheal
» Operations on Result Sets in SQL
Sun Jan 31, 2010 12:31 am by Micheal
» Subqueries in SQL
Sun Jan 31, 2010 12:30 am by Micheal
» Joining Relations in SQL
Sun Jan 31, 2010 12:28 am by Micheal
» Delete comand in SQL
Sun Jan 31, 2010 12:27 am by Micheal
» Update command in SQL
Sun Jan 31, 2010 12:26 am by Micheal
» Insert command in SQL
Sun Jan 31, 2010 12:23 am by Micheal