Quiz


1:

Which of the following statements about indexes is true?

  1. Indexes take up too much space on disk and should not be used.

  2. Not having any indexes can make your queries run slowly.

  3. You should index as many columns as possible.

  4. None of the above.

2:

When choosing data types for columns

  1. use the same ones throughout a database because this will make the database more efficient

  2. use variable- sized ones wherever possible to optimize disk usage

  3. use fixed-sized ones wherever possible to speed up access to data

  4. none of the above

3:

When choosing storage engine types for tables

  1. always use InnoDB or BDB because they are transaction safe

  2. always use MyISAM because it is the fastest

  3. use a mix of types depending on what you need in a table

  4. none of the above

4:

An index will not be used if a query

  1. uses a leftmost prefix of the index columns

  2. uses all the index columns in a different order than in the index

  3. uses all the index columns in the same order as in the index

  4. uses a rightmost prefix of the index columns

5:

Use OPTIMIZE TABLE

  1. when you have just created a table, to improve its structure

  2. when using InnoDB tables, to reduce overhead

  3. after a lot of SELECT statements have been run on a table

  4. after a lot of DELETE statements have been run on a table




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