My Oracle Support Banner

NLSSORT doesn't work with LIKE clause (Doc ID 3001620.1)

Last updated on FEBRUARY 01, 2024

Applies to:

Oracle Database - Enterprise Edition - Version 19.0.0.0 and later
Information in this document applies to any platform.

Symptoms

  The query below returns one row.
select T$ITEM from <xxxxxx> where NLSSORT("T$ITEM",'nls_sort=''UCA0700_DUCET_S3_VN_BN_NY_EN_FN_HN_DN_MN''') =NLSSORT(' BCKH-B07544', 'nls_sort=''UCA0700_DUCET_S3_VN_BN_NY_EN_FN_HN_DN_MN''');

But this query returns no rows.
select T$ITEM from <xxxxxx> where NLSSORT("T$ITEM",'nls_sort=''UCA0700_DUCET_S3_VN_BN_NY_EN_FN_HN_DN_MN''') LIKE NLSSORT(' BCKH-B07544', 'nls_sort=''UCA0700_DUCET_S3_VN_BN_NY_EN_FN_HN_DN_MN''') || '%';

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.