mysql:从表名构建动态别名

时间:2013-02-19 18:42:23

标签: mysql

是否可以从表名中动态构建列的别名?

例如:

Table test with Columns:
Column c1, Column c2, Column c3, Column c4

Statement: SELECT t.* AS abc FROM test AS t 
should return the values with column names: t.c1, t.c2, t.c3, t.c4

0 个答案:

没有答案