I am not a professional in writing queries, but have written a lot from the moment MySQL started. I recently noticed that there is no need to enter a keyword ASin the alias of the name.
SELECT name AS n
equally
SELECT name n
However, I know that this ability was missing many years ago. I have 2 questions on this:
- Is the
ASkeyword redundant? Sometimes, when I came across a user request on a website that was not ASin aliasing, running it turned off the MySQL service, I changed the way the aliases with the keywords were added AS, and this small change made it work!
What was the problem?
source
share