If you look at the FROM
clause, you see this:
FROM #__k2_items as a
And in the LEFT JOIN
clause, you see this:
LEFT JOIN #__k2_categories c ON c.id = a.catid
That aliases the #__k2_items
table (whatever it's really called) to the name a
, and #__k2_categories
to c
, respectively. In this case it's just to save typing and improve the readability of the query, really.
The dot associates a column name to a table name so MySQL knows which tables to look in, in case you have columns of the same name in more than one table involved in the query. That is, it resolves column ambiguity.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…