I understand
SELECT * FROM T WHERE C1 = 1;
But I don’t fully understand
SELECT * FROM T MyT WHERE MyT.C1 = 1;
What is MyT?
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.
MyT is an alias for that reference of the table.
will work as well as
which will work as well as
But this won’t work:
You must use the alias to refer to the table after it is assigned.
These are essential when joining a table to itself: