I played with the world database (InnoDB) found here to get more information about MySQL.
I entered the following basic query:
SELECT COUNT(Name), MIN(Name), MAX(Name) FROM Country GROUP BY Continent
It seems that the MIN () and MAX () methods work in CHAR strings in the title in alphabetical order, where A is the smallest value, and Z the largest, etc.
Can someone explain what happens behind the scenes and what values ββare built to sort them this way? What will happen to strings of both alphabetic characters and integers or special characters?
Insight is greatly appreciated.
mysql
Kay cee
source share