MySQL Forums
Forum List  »  Performance

Re: Does prefixing field names with their table name improve query speed?
Posted by: Peter Brawley
Date: February 18, 2016 05:21PM

> Correction states that the right answer to this question is answer 1., meaning that statements 2. and 3. are correct.

Doesn't follow. Nor does the opposite: the best choice need not be the only correct choice.

If a column name occurs in more than one referenced table, the SQL parser will insist on a qualification. Apart from that, qualification has no effect on query speed.

If a query invokes multiple tables, qualified column names may greatly improve readability. The more self-documenting a query is, the easier it is to debug and maintain.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Does prefixing field names with their table name improve query speed?
659
February 18, 2016 05:21PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.