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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T01:48:45+00:00 2026-06-09T01:48:45+00:00

As far as I know LIKE operator should be case insensitive, but if I

  • 0

As far as I know LIKE operator should be case insensitive, but if I have the string “ABC Software” and I get the following query:

SELECT ...
FROM ...
WHERE ... LIKE 'AbC Softwa%'

I get a zero-rows result set (If I upper-case the second letter, the b, I get the right result). Why? Previously I had *utf8_bin* as character encoding, so I switch to *latin_swedish_ci*, supposing that binary matching was the source of all errors, but I get the same problem.

  • 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-09T01:48:47+00:00Added an answer on June 9, 2026 at 1:48 am

    MySQL is case-insensitive by default.

    If you want to perform a case-sensitive search use:

    SELECT ...
    FROM ...
    WHERE ... LIKE BINARY 'AbC Softwa%'
    

    If your database, or table is configured to be case-sensitive by default, then to perform a case-insensitive search, you need to do something like this:

    SELECT ...
    FROM ...
    WHERE ... COLLATE latin1_swedish_ci LIKE 'AbC Softwa%' COLLATE latin1_swedish_ci
    

    If you are using utf8, then try this:

    SELECT ...
    FROM ...
    WHERE ... COLLATE utf8_general_ci LIKE 'AbC Softwa%' COLLATE utf8_general_ci
    

    You might want to investigate why your database is case-sensitive.

    To see how the server is configured, run:

    SHOW VARIABLES LIKE '%collation%';
    

    To see the collation of your tables, run:

    SHOW TABLE STATUS;
    

    And to see the default collation for the database:

    SHOW CREATE DATABASE dbname;
    

    where dbname is the name of the database.

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

Sidebar

Related Questions

As far as I know, certain mathematical functions like FFTs and perlin noise, etc.
As far as I know, C2DM is per app per device thing..but my question
I would like to achieve the following by introducing a new operator (e.g. :=
I have created two enums and I know they are not the same but
I know the ternary operator has some surprising restrictions, but I was a bit
As far as I know when you use a left shift bitwise operator in
I have two algorithms written in C++. As far as I know, it is
I would like to know how, in Objective-C, how to tell if a string
I would like to know how the delete operator figures out the memory location
I know there are many question on SO like this Operator 'whatever' cannot be

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.