1.

Which statement is used to force the optimizer to use tables in a particular order?(a) FORCE INDEX(b) USE INDEX(c) IGNORE INDEX(d) STRAIGHT_JOIN

Answer» Right answer is (d) STRAIGHT_JOIN

For explanation I would say: STRAIGHT_JOIN is used to force the optimizer to use tables in a particular order. The MySQL optimizer by default considers itself free to determine the order in which to scan tables most quickly.


Discussion

No Comment Found