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 9067395
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T16:55:45+00:00 2026-06-16T16:55:45+00:00

Building on this answer: https://stackoverflow.com/a/2349824/1382306 Are there further guidelines in A and B’s usages,

  • 0

Building on this answer: https://stackoverflow.com/a/2349824/1382306

Are there further guidelines in A and B’s usages, or are they equally important?

I have a SELECT FROM table1, table2 WHERE table2.table1id = table1.id AND table2.constant = ?.

In my case, I know that ? is from a user-defined variable. Does that make a difference since it never changes?

Could I push my luck and ask for an explanation of the logic used against (A,B) and (B), like “all Bs are found that have As, and all Bs are searched next”.

Many thanks in advance!

  • 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-06-16T16:55:46+00:00Added an answer on June 16, 2026 at 4:55 pm

    Hidden in another popular post https://stackoverflow.com/a/4120191/1382306, it looks like

    “Queries need to address the order of columns when dealing with a covering index (an index on more than one column), from left to right in index column definition. The column order in the statement doesn’t matter, only that of columns 1, 2 and 3 – a statement needs have a reference to column 1 before the index can be used. If there’s only a reference to column 2 or 3, the covering index for 1/2/3 could not be used.

    In MySQL, only one index can be used per SELECT/statement in the query (subqueries/etc are seen as a separate statement). And there’s a limit to the amount of space per table that MySQL allows. Additionally, running a function on an indexed column renders the index useless”

    There’s a good list of index pitfalls in that answer too.


    In my case since “only one index can be used per SELECT/statement in the query” I’m guessing that using only (?, table2.table1id) is the way to go.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using the script from this answer https://stackoverflow.com/a/1681410/22 to insert a launch application
I'm building this website and I have basically two questions about this page: http://sites.publishyours.com.br/silviamecozzi/pt/obra/deserto_das_palmas.php
This is strange question in sense that I don't think there is answer for
I'm building an web app that uses this code to search for addresses: http://code.google.com/intl/en/apis/maps/documentation/javascript/examples/places-autocomplete.html
I've read some of the similar questions but they don't quite answer this query
I'm building an API console ( with https://apigee.com/togo ) for my web app API.
I'm building this application using PHP, MySQL and jQuery. Essentially it's a checklist management
i'm building this little function, what i need is this query to print me
I'm building this function but I'm not getting the desired output, it's been more
I'm building this small java applet in which I need a JPanel which will

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.