ORA-01425 when using 'like' or 'escape' on NVARCHAR2 column
Last updated on JUNE 20, 2018
Applies to:Oracle Server - Standard Edition - Version 188.8.131.52 to 184.108.40.206 [Release 11.1]
Information in this document applies to any platform.
You are using using 'like' or 'escape' on NVARCHAR2 column and you get the following error:
ERROR at line 1:
ORA-01425: escape character must be character string of length 1
Here is an example of possible failing syntax:
SQL> select * from t1 where col2 like '%\$$%' escape '\';
You may see this problem while setting Cursor_sharing=force.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms