I have 3 tables (mysql db) on which I want to do an inner join. The problem is that these tables have common columns. I know I could use aliases to differentiate them (select A.x as Ax, B.x as Bx, C.c as Cx ...
) but this requires to list the columns. However it is not really an option. Is there a way I could give an alias to all the columns of a table at once?
Something like select a.* as a*
?
a.*
should work (without a possibility for column aliases), and you could as well try it yourself... – dezso Feb 21 '14 at 10:36order
, gets the nameo_first_name
, for example. If you manage to keep the prefixes unique, it can solve such a problem. – dezso Feb 26 '14 at 10:45