Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question about synonym tables in MySQL 1

Status
Not open for further replies.

jshuen

Programmer
Jan 11, 2003
5
AU
Hi,

I was just wondering if anyone knows whether MySQL v 3.5 supports synonym tables on the database level.

Regards,
jshuen
 
A synonym serves as an alias for a table or view

create synonym x for sleipnir214.t

after that I could use x instead of sleipnir214.t in my DML statements.

There is also some DBMS that have

create global/public synonym x for sleipnir214.t

which means that all users can use x without any qualification.

Synonyms is not an ANSI standard feature.

It is supported in Oracle and mimer for instance possibly more, with variations in the exact functionality though.
 
swampBoogie:
Thanks.

What do synonyms give you other than simplifying queries? Can you hang permissions on them, like views in PostgreSQL?

jshuen:
Yeah, I doubt there is any plan to implement something like that in MySQL any time soon. They're only just now getting around to subselects and stored procedures.

Want the best answers? Ask the best questions: TANSTAAFL!
 
It has not really to do with permissions, this is stil checked for the original table.

As I see it, if you have views, synonyms does not serve any real purpose.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top