table alias (or 'symlink') in mysql
Posted
by andreash
on Server Fault
See other posts from Server Fault
or by andreash
Published on 2010-05-22T19:36:10Z
Indexed on
2010/05/22
19:41 UTC
Read the original article
Hit count: 222
Hi there,
in MySQL5.1, is there a way to make one table accessible by two different names? I'm thinking about somethink like a symlink on linux filesystems.
I know theres the
CREATE VIEW myview AS SELECT * FrOM mytable
thing, but I don't only need to SELECT from both names, but also delete etc ...
You might ask why I want to do this? It's about getting a commercial, closed-source app to work, which is crappily programmed (usually, the table names are all lower-case, but occasionally, they use capitalized names for the same table ...). Oh, that would be another idea: Is there a way to tell MySQL not to care about capitalization of table names (like on Windows filesystems?)? that would also do the trick ...
Thanks for your insight!
A.
© Server Fault or respective owner