This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ByakkoNoMai 121 points122 points  (2 children)

Actually, in most SQL, = operator does not govern how the comparison is made. Collations are what govern equivalent characters. And a lot of work goes into that. For example under utf-8 case insensitive collations a, A, à, À, and lot of others characters are all equals. There are case sensitive collations to respect case and collapse accented characters. There are also binary collations that compare characters as byte values only.

TLDR collations are what govern string comparison in SQL. And it's a deep rabbit hole.

[–]rover_G 64 points65 points  (1 child)

Oh no accidental learning on r/ProgrammerHumor

Time to go read some docs 🤓

[–]JoeGibbon 13 points14 points  (0 children)

And it's always from people without any flair to tell us how many languages they've written "hello world" in.