what the difference between Create single-column index & Create composite index in mysql. when we create the table and assign index then show two option : 1>Create single-column index, 2>Create composite index.
Composite index is an index on multiple columns. In a WHERE clause, it will be used if either the first column is a condition or both columns are a condition, but not if only the second column is a condition.