Saturday, October 26, 2013

Synonym in sql server

Synonym

A synonym is another name or alternative name of the table

They are created
     If table name is lengthy
     To access table without owner name


Syntax:

Create synonym<name> for table name

Example

createsynonym s1 for emp

select* from s1


Dropping synonym

dropsynonym s1
Difference between view and synonym
      
View
Synonym
View is a subset of a Table.
Synonym is a mirror of a Table
View can be based on more than one table.
It is always based on one table.


No comments:

Post a Comment

Thank you for visiting my blog

Kubernetes

Prerequisites We assume anyone who wants to understand Kubernetes should have an understating of how the Docker works, how the Docker images...