Accent and case insensitive COLLATE equivalent in Oracle

In Microsoft SQL Server, if I want to be fatally searchable in a case-sensitive database, I can run the following SQL:

SELECT * FROM MyTable
WHERE MyField = 'BobDillon' COLLATE Latin1_General_CI_AI

And that will find all the bobdillon entries.

If I want to do the same in Oracle, I know that I can do this:

SELECT * FROM MyTable
WHERE UPPER(MyField) = 'BOBDILLON'

But I want to know if there is a direct equivalent to the collate keyword, so I can look for case sensitivity and accent sensitivity, it seems to me.

+3
source share
1 answer
SELECT *
FROM MyTable
WHERE NLSSORT(MyField, 'NLS_SORT = Latin_CI') = NLSSORT('BobDillon', 'NLS_SORT = Latin_CI')
+7
source

All Articles