I am currently updating our own applications from MySQL 5.0.45 to 5.1.41. In the old environment, we mirrored some tables using symbolic links from one database to another. For several reasons, current versions of MySQL block this completely.
It seemed like the best replacement is using the view, but I have a problem. Several old tables have column names that are capitalized. However, some of our applications (PHP) do SELECT with a capitalized name, as well as some SELECT with lowercase names. This usually works fine, because MySQL returns tables with a column name that is capitalized as you specified it in SELECT. However, from the point of view, it seems not so. See the following:
create table t(A int);
Query OK, 0 rows affected (0.18 sec)
> create view v as select A from t;
Query OK, 0 rows affected (0.00 sec)
> insert into t values(47);
Query OK, 1 row affected (0.01 sec)
> select a from t;
+------+
| a |
+------+
| 47 |
+------+
1 row in set (0.00 sec)
> select a from v;
+------+
| A |
+------+
| 47 |
+------+
1 row in set (0.00 sec)
, , SELECT, , . , ; . , MySQL, , PHP.
, , , GROUP BY SELECT , . , , .
, ?