最新的MYSQL MySQL 5.0 Database Administrator Certified Professional Exam, Part II - 1Z0-874免費考試真題
Consider the following:
mysql> EXPLAIN SELECT * FROM City WHERE CountryCode = 'USA'
*************************** 1. row ***************************
id: 1
select_type: SIMPLE table: City
type: ALL
possible_keys: NULL
key: NULL
key_len: NULL
ref: NULL
rows: 4079
Extra: Using where
What does the possible_keys column in this output denote?
mysql> EXPLAIN SELECT * FROM City WHERE CountryCode = 'USA'
*************************** 1. row ***************************
id: 1
select_type: SIMPLE table: City
type: ALL
possible_keys: NULL
key: NULL
key_len: NULL
ref: NULL
rows: 4079
Extra: Using where
What does the possible_keys column in this output denote?
正確答案: D
Which of the following is true of the table cache if you mainly run simple queries on many tables?
正確答案: C
Which of the following are methods to improve performance? (Choose two)
正確答案: B,D
Consider the following: mysql> EXPLAIN SELECT DISTINCT City.id,City.name -> FROM City,Country -> WHERE Country.Name IN ('United States','Canada','Mexico') -> AND City.CountryCode=Country.Code -> ORDER BY name *************************** 1. row *************************** id: 1 select_type: SIMPLE table: City type: ALL possible_keys: NULL key: NULL key_len: NULL ref: NULL rows: 4079 Extra: Using temporary; Using filesort *************************** 2. row *************************** id: 1 select_type: SIMPLE table: Country type: eq_ref possible_keys: PRIMARY key: PRIMARY
key_len: 3
ref: world.City.CountryCode
rows: 1
Extra: Using where;
Distinct
Which of the following best describes the meaning of the values in the ref columns?
key_len: 3
ref: world.City.CountryCode
rows: 1
Extra: Using where;
Distinct
Which of the following best describes the meaning of the values in the ref columns?
正確答案: B
Which of the following statements best describe the key buffer? (Choose two)
正確答案: A,D
Granting access to the mysql database...
正確答案: A
Which of the following best describes why InnoDB tables should always have primary keys and why they should be short?
正確答案: B