ORA-01425 when using 'like' or 'escape' on NVARCHAR2 column
Last updated on MAY 08, 2017
Applies to:Oracle Server - Standard Edition - Version 220.127.116.11 to 18.104.22.168 [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
Million Knowledge Articles and hundreds of Community platforms