Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3792856
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T12:41:14+00:00 2026-05-19T12:41:14+00:00

Is there a standard order to create a covering index for a table in

  • 0

Is there a standard order to create a covering index for a table in MySQL? Meaning if I have query that has a where clause, order by and the fields in the select statement, in what order would I have the fields to the index to properly create a covering index?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T12:41:14+00:00Added an answer on May 19, 2026 at 12:41 pm

    A covering index takes a list of columns in a comma separated list. This list is traversed/reviewed starting at the left side. If the left most column is not used, the index is not used. Meaning, having a column list like:

    col_a, col_b, col_c
    

    If the query does not contain a reference to col_a, it won’t be used. If the order is changed to:

    col_c, col_b, col_a
    

    …then col_c needs to be referenced in the query. Continuing to use the second covering index column example, col_b or col_a don’t have to be in in the query but the evaluation moves column by column, from left to right.

    Column references for index use can be in the following clauses:

    • SELECT
    • WHERE
    • GROUP BY
    • HAVING
    • ORDER BY

    Reference:

    • Multiple-Column Indexes, MySQL documentation
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a MySQL table where there are two fields that make up the
Is there any way to start foobar.js WSH-script in order that standard Task Manager
Is there a standard library method that converts a string that has duration in
Is there some standard way or has anyone written something that allows you to
I have a tree structure in an sql table like so: CREATE TABLE containers
I have a program that generates some standard SQL like SELECT * FROM TEST
I have a primary key in my mysql table which is comprised of three
I have a mySQl innodb database which has a couple of tables which store
Are there standard file names for Terms of Use and Privacy Policies? For some
Are there standard optimization tricks for Objective-C to make for faster execution along the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.