Skip to content

COLLATE

SELECT
column1 COLLATE utf8_unicode_ci AS NewColumnName
FROM
table_name;
NewColumnName
Data
data
DATA

In the COLLATE clause, we have specified utf8_unicode_ci as the collation, which makes the search case-insensitive. Thus, on executing the query, MySQL fetches the data in column1 transformed into a case-insensitive format under a new column called NewColumnName.