Name
COLLATION()
Synopsis
COLLATION(string
)
This function returns the collation for the character set of a given string. This function is available as of version 4.1.0 of MySQL. Here is an example:
SELECT COLLATION('Rosá'); +--------------------+ | COLLATION('Rosá') | +--------------------+ | utf8_general_ci | +--------------------+
Get MySQL in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.