I've been worndering why this query returns this result:
SELECT direccion_principal
FROM tb_dysport_contacto_medico_terapeutica
WHERE direccion_prin开发者_运维技巧cipal LIKE '%Ú%'
Result:
+---------------------+
| direccion_principal |
+---------------------+
| COLSANITAS |
+---------------------+
The table collation is utf8_general_ci
.
This part of your query:
LIKE '%Ú%'
is attempting to select results with accented characters. The utf8_general_ci collation removes accents: What are the diffrences between utf8_general_ci and utf8_unicode_ci?
Before a query, indicate what charset the client will use to send SQL statements to the server with:
SET NAMES 'utf8';
SELECT direccion_principal
FROM tb_dysport_contacto_medico_terapeutica
WHERE direccion_principal LIKE '%Ú%' collate utf8_bin
But this also makes it case sensitive.
精彩评论