This is my syntax:
select firstname from (select * from inquiry where id = 2 ) as inner ;
I am having confusion as where to put the alias name for table. I used the above syntax, but it results in an error:
You have error in your sta……..
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.
INNERis a MySQL reserved keyword and will throw an error if you try to use it as an alias.Either place backticks (`) around the word “inner” or just use a different alias: