The default index type for MEMORY tables is . . . . . . . .
A. HASH
B. SPATIAL
C. FULLTEXT
D. UNIQUE
Answer: Option A
Solution (By Examveda Team)
This question asks about the type of index that is automatically used for tables created with the MEMORY storage engine in MySQL.MEMORY tables store data in RAM, which makes them very fast for reading but less reliable because the data is lost when the server restarts.
The options provided are different types of indexes:
* HASH: Uses a hash function for quick lookups, but doesn't support range queries (like finding values between two numbers).
* SPATIAL: Used for indexing geographic data (like coordinates) to enable efficient spatial queries.
* FULLTEXT: Used for indexing text data to enable fast searching of words within the data.
* UNIQUE: Ensures that each value in a column is unique.
The answer is Option A: HASH. MEMORY tables by default use HASH indexes. This is because HASH indexes are very efficient for lookups and don't require extra disk space.
Related Questions on MySQL Miscellaneous
How is communication established with MySQL?
A. SQL
B. Network calls
C. A programming language like C++
D. APIs
Which type of database management system is MySQL?
A. Object-oriented
B. Hierarchical
C. Relational
D. Network
Join The Discussion