Question

There are two tables in mysql databse that use ucs2_slovenian_ci (that I can't change). How can I make sql that will recognize the differece between 'e' and 'è' and won't connect those rows with differet values?

SELECT tableA.value, tableB.value
FROM tableA
INNER JOIN tableB ON (tableA.value = tableB.value)

doesn't work.Thank you for your help

Was it helpful?

Solution

You could force a binary comparison:

SELECT tableA.value, tableB.value
FROM tableA
INNER JOIN tableB ON tableA.value = BINARY tableB.value

Please have a look at the binary operator page in the docs.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top