When using Aliases with your select query like this:
SELECT u.col1 AS u_col1
, u.col2 AS u_col2
, u.col3 AS u_col3
-- etc
, u2.col1 AS u2_col1
, u2.col2 AS u2_col2
, u2.col3 AS u2_col3
etc.
Is there a way to shorten the amount of syntax? So you don’t have to say ‘AS‘ for every alias?
I thought maybe: SELECT u.col1, u.col2 AS u_col1, u_col2
But that didn’t work.
Anyone know if it’s possible?
Thanks all 🙂
http://dev.mysql.com/doc/refman/5.0/en/select.html
So simply do: