add batch remove batch split batch comment selection show hidden batches hide batch highlight batch
db<>fiddle
donate feedback about
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE e1 ref personId_categoryId,categoryId_personId personId_categoryId 4 const 1 Using index; Using temporary; Using filesort
1 SIMPLE e2 ref personId_categoryId,categoryId_personId categoryId_personId 4 fiddle.e1.categoryId 1 Using where; Using index
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE e2 range personId_categoryId,categoryId_personId personId_categoryId 4 null 1 Using where; Using index
1 SIMPLE e1 ref personId_categoryId,categoryId_personId personId_categoryId 8 const,fiddle.e2.categoryId 1 Using index
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE e1 ref personId_categoryId,categoryId_personId personId_categoryId 4 const 1 Using index; Using temporary; Using filesort
1 SIMPLE e2 ref categoryId_personId categoryId_personId 4 fiddle.e1.categoryId 1 Using index
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE e2 index categoryId_personId personId_categoryId 8 null 1 Using index
1 SIMPLE e1 ref personId_categoryId,categoryId_personId personId_categoryId 8 const,fiddle.e2.categoryId 1 Using index