I want to name my Alias titles using data from my tables. Here’s a totally stupid example to show what I want to do:
SELECT id AS CONCAT('id_', name)
Which would give me the output id_5 => 5. (if ID was 5 in the table)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Sounds like what you’re after is a pivot – you mean that for each row in the table, you would end up with a new column, right? If so, then just google mysql pivot (sorry, I’m used to sqlserver)