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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T01:32:28+00:00 2026-06-04T01:32:28+00:00

The way I understand it, when MySQL performs a LIKE query, depending on how

  • 0

The way I understand it, when MySQL performs a LIKE query, depending on how you’ve set up your query (%)string(%), the search string looks for exact text matches within your selected content.

I’m curious as to how and if the resulting rows are ordered according to matches found?

For example, if my query LIKE string 'frankly' is queried against a table that has the following content:

id  content
-------------
1   frankly, i find cake rather delicious
2   frankly, i find cake repulsive, frankly
3   i currently live on franklyn street

Would any particular row be favored over the other?

  • 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-04T01:32:29+00:00Added an answer on June 4, 2026 at 1:32 am

    MySql doesn’t guarantee an order for LIKE queries like that. In general, if you want a specific order, you will have to specify it using ORDER BY.

    The specific order depends on many other factors, like join-type(Hash-join, Merge-join, etc) and data access method (index-scan, sequential scan, etc).

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

Sidebar

Related Questions

I need to findout a better and quick way to query MySQL table to
I am migrating an app to the High-Replication datastore. The way I understand that
The basic way that I understand Shiro's SecurityUtils.getSubject() to work is that it returns
I have been trying to understand the way ActionScript's events are implemented, but I'm
I am tired of working this out myself , i cannot understand the way
I understand that the wildcard * (by itself) will expand in such a way
From what I understand, the best way to deal with dates in the Zend
I am trying to understand DbConnection and DbCommand, and the proper way to dispose
I just read Factory Method. I understand that it provides a way to delegate
I am trying to understand if there is a way to get a hold

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.