A type mismatch that costs a scan
students.roll_number is VARCHAR(20) and is indexed. The application
sends:
sql
SELECT * FROM students WHERE roll_number = 22103045;
The query works but scans. Why?
students.roll_number is VARCHAR(20) and is indexed. The application
sends:
sql
SELECT * FROM students WHERE roll_number = 22103045;
The query works but scans. Why?