I’m a beginner with sqlite coming from mysql.
maybe my question is dumb but I can’t find the equivalent of the “AS” in mysql for example.
Example: "SELECT firstName || ' ' || lastName AS fullName FROM myTable;"
Is it possible?
Thanks in advance!
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.
SQLite also supports using
AS, as shown in this diagram from the page Syntax Diagrams for SQLite:result-column:
Because it allows you to give a descriptive name to each column in your result set. You can use this name to refer to the column when you read the results.