By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Records: 3 Duplicates: 0 Warnings: 0
| id | name_ci | name_cs |
|---|---|---|
| 1 | John | John |
| 2 | john | john |
| 3 | JOHN | JOHN |
| id | select_type | table | partitions | type | possible_keys | key | key_len | ref | rows | filtered | Extra |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | SIMPLE | test | null | ref | name_ci | name_ci | 131 | const | 3 | 100.00 | null |
| id | name_ci | name_cs |
|---|---|---|
| 2 | john | john |
| id | select_type | table | partitions | type | possible_keys | key | key_len | ref | rows | filtered | Extra |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | SIMPLE | test | null | ALL | name_ci | null | null | null | 3 | 33.33 | Using where |
| id | name_ci | name_cs |
|---|---|---|
| 2 | john | john |
| id | select_type | table | partitions | type | possible_keys | key | key_len | ref | rows | filtered | Extra |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | SIMPLE | test | null | ref | name_cs | name_cs | 131 | const | 1 | 100.00 | null |
| id | name_ci | name_cs |
|---|---|---|
| 1 | John | John |
| 2 | john | john |
| 3 | JOHN | JOHN |
| id | select_type | table | partitions | type | possible_keys | key | key_len | ref | rows | filtered | Extra |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | SIMPLE | test | null | ALL | name_cs | null | null | null | 3 | 33.33 | Using where |