Skip to content

Instantly share code, notes, and snippets.

@dveeden
Created December 15, 2015 06:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dveeden/e5fac8f206a5bf52b5d6 to your computer and use it in GitHub Desktop.
Save dveeden/e5fac8f206a5bf52b5d6 to your computer and use it in GitHub Desktop.
mysql> SELECT 'Café' COLLATE utf8mb4_unicode_ci = 'Cafe' COLLATE utf8mb4_unicode_ci AS test1;
+-------+
| test1 |
+-------+
| 1 |
+-------+
1 row in set (0.00 sec)
mysql> SELECT '🍣 ' COLLATE utf8mb4_unicode_ci = '🍺 ' COLLATE utf8mb4_unicode_ci AS test2;
+-------+
| test2 |
+-------+
| 1 |
+-------+
1 row in set (0.00 sec)
mysql> SELECT '🍣 ' COLLATE utf8mb4_unicode_520_ci = '🍺 ' COLLATE utf8mb4_unicode_520_ci AS test3;
+-------+
| test3 |
+-------+
| 0 |
+-------+
1 row in set (0.01 sec)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment