Examveda
Examveda

Association between one or more MyISAM tables and the named key cache is set by . . . . . . . .

A. BEGIN

B. CACHE INDEX

C. ALTER DATABASE

D. ALTER EVENT

Answer: Option B

Solution(By Examveda Team)

BEGIN: This option is incorrect. BEGIN is typically used to initiate a transaction in MySQL, not to associate MyISAM tables with the named key cache. It is used in the context of transactional operations rather than cache management.
CACHE INDEX: This is the correct option. The CACHE INDEX statement in MySQL is used to associate one or more MyISAM tables with the named key cache. By caching indexes, MySQL can improve the performance of queries that rely on those indexes. This statement allows you to specify which indexes should be cached, helping to optimize query execution.
ALTER DATABASE: This option is incorrect. ALTER DATABASE is used to modify the structure or properties of a database, such as changing its character set or collation. It is not directly related to caching indexes for MyISAM tables.
ALTER EVENT: This option is incorrect. ALTER EVENT is used to modify the definition of scheduled events in MySQL. It is not related to caching indexes for MyISAM tables.

Therefore, the correct answer is Option B: CACHE INDEX, as it accurately represents the command used to associate MyISAM tables with the named key cache in MySQL.

This Question Belongs to MySQL >> MySQL Miscellaneous

Join The Discussion

Related Questions on MySQL Miscellaneous