Quiz


1:

The BENCHMARK() function returns

  1. the result of the benchmarked expression

  2. the time taken to execute the benchmarked expression

  3. zero, regardless of the parameters

  4. none of the above

2:

You run EXPLAIN on a query and it tells you that the type for one of the tables in the join is ALL . This means that

  1. only one row will be read from the table

  2. all the rows with matching index values will be read from the table

  3. all of the index will be scanned

  4. all of the table will be scanned

3:

You run EXPLAIN on a query and it tells you that the type for one of the tables in the join is eq_ref . This means that

  1. only one row will be read from the table

  2. all the rows with matching index values will be read from the table

  3. all of the index will be scanned

  4. all of the table will be scanned

4:

You run EXPLAIN on a query and it tells you that the type for one of the tables in the join is index . This means that

  1. only one row will be read from the table

  2. all the rows with matching index values will be read from the table

  3. all of the index will be scanned

  4. all of the table will be scanned

5:

The output of EXPLAIN tells you that MySQL is joining two tables in a suboptimal order. You should

  1. run ANALYZE TABLE on the two tables

  2. force the join order using STRAIGHT JOIN

  3. either a) or b)

  4. neither a) nor b)




MySQL Tutorial
MySQL Tutorial
ISBN: 0672325845
EAN: 2147483647
Year: 2003
Pages: 261

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net