hard20 pts · first answer countspostgresqlmysqlindexing
MySQL ignores an index on phone
In MySQL, phone is a VARCHAR column with an index. The query below does a full table scan. Why?
SELECT * FROM customers WHERE phone = 9876543210;
Discussion 0
Join free to post in the discussion.
Related questions
- When a B-tree index helpsDatabase Administrator
- Logical vs physical backupDatabase Administrator
- Why a write-ahead log existsDatabase Administrator
- Read-only access for analystsDatabase Administrator
- What pg_hba.conf controlsDatabase Administrator
- View vs materialized viewDatabase Administrator
- Seeing what is running nowDatabase Administrator
- Cancel or terminate a sessionDatabase Administrator