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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T23:23:48+00:00 2026-05-15T23:23:48+00:00

I Understand Character sets but I don’t understand Collation. I know you get a

  • 0

I Understand Character sets but I don’t understand Collation. I know you get a default collation with every Character set in Mysql or any RDBMS but I still don’t get it! Can someone please explain in layman terms?

Thank you in advance 😉

  • 1 1 Answer
  • 3 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-15T23:23:48+00:00Added an answer on May 15, 2026 at 11:23 pm

    The main point of a database collation is determining how data is sorted and compared.

    Case sensitivity of string comparisons

    SELECT "New York" = "NEW YORK";` 
    

    will return true for a case insensitive collation; false for a case sensitive one.

    Which collation does which can be told by the _ci and _cs suffix in the collation’s name. _bin collations do binary comparisons (strings must be 100% identical).

    Comparison of umlauts/accented characters

    the collation also determines whether accented characters are treated as their latin base counterparts in string comparisons.

    SELECT "Düsseldorf" =  "Dusseldorf";
    SELECT "Èclair" =      "Eclair";
    

    will return true in the former case; false in the latter. You will need to read each collation’s description to find out which is which.

    String sorting

    The collation influences the way strings are sorted.

    For example,

    • Umlauts Ä Ö Ü are at the end of the alphabet in the finnish/swedish alphabet latin1_swedish_ci

    • they are treated as A O U in German DIN-1 sorting (latin_german1_ci)

    • and as AE OE UE in German DIN-2 sorting (latin_german2_ci). (“phone book” sorting)

    • In latin1_spanish_ci, “ñ” (n-tilde) is a separate letter between “n” and “o”.

    These rules will result in different sort orders when non-latin characters are used.

    Using collations at runtime

    You have to choose a collation for your table and columns, but if you don’t mind the performance hit, you can force database operations into a certain collation at runtime using the COLLATE keyword.

    This will sort table by the name column using German DIN-2 sorting rules:

    SELECT name
    FROM table
    ORDER BY name COLLATE latin1_german2_ci;
    

    Using COLLATE at runtime will have performance implications, as each column has to be converted during the query. So think twice before applying this do large data sets.

    MySQL Reference:

    • Character Sets and Collations That MySQL Supports
    • Examples of the Effect of Collation
    • Collation issues
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I understand what System.WeakReference does, but what I can't seem to grasp is a
I understand the difference between String and StringBuilder ( StringBuilder being mutable) but is
I understand that they are both supposed to be small, but what are the
I understand how I can change the dns settings for my domains by editing
I understand how JS is run and I think I understand most of the
I understand that some countries have laws regarding website accessibility. In general, what are
I understand the overall meaning of pointers and references(or at least I think i
I understand the main function of the lock key word from MSDN lock Statement
I understand that there are several ways to blend XNA and WPF within the
I understand, in a fuzzy sort of way, how regular ACID transactions work. You

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.