I saw the following code:
SELECT
u.ID, u.username, u.active, u.email, u.admin, u.banned,
u.name AS groupmemberships
FROM users u
WHERE u.ID={$uid}
and was wondering where the official documentation about aliasing multiple columns was. W3schools (not the best source) as the only place where I found "documentation" in the following way:
SELECT column_name(s) FROM table_name AS alias_name;
http://www.w3schools.com/sql/sql_alias.asp
I would appreciate a link to official documentation so I can look it over.
u.name AS groupmembershipsthe other columns will still be whatever they're normally called.MySQL ALIAS.select u.id as user_idandselect upper(u.username) as uppercase_name, and you can alias a table as infrom users u. There exists no group alias for multiple columns. Does this answer your question? Well, you haven't really asked a question, though ...