Examveda

Which mode tells cache queries that begin with SELECT SQL_CACHE?

A. 0

B. 1

C. 2

D. 3

Answer: Option C

Solution (By Examveda Team)

This question is asking about the MySQL query cache. The query cache is a feature in MySQL that stores the results of recently executed queries, so that if the same query is run again, MySQL can simply retrieve the result from the cache instead of re-executing the query.
The SELECT SQL_CACHE statement tells MySQL to store the results of the query in the cache.
The mode that determines whether the query cache is enabled or disabled is represented by an integer value.
Here are the possible values and their meanings:
Option A: 0 - This means the query cache is disabled.
Option B: 1 - This means the query cache is enabled.
Option C: 2 - This option is not used for the query cache.
Option D: 3 - This option is not used for the query cache.
Therefore, the correct answer is Option B: 1.
In summary: The query cache is enabled in mode 1, which means that queries using SELECT SQL_CACHE will be stored in the cache for future use.

This Question Belongs to MySQL >> MySQL Miscellaneous

Join The Discussion

Related Questions on MySQL Miscellaneous