A Query Using a Like Predicate and NVL Function Causes ORA-01560

(Doc ID 2310133.1)

Last updated on SEPTEMBER 25, 2017

Applies to:

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


SQL> variable attr22 varchar2(200)
SQL> execute :attr22 := '<Multibyte character>....';
SQL> select 1 from dual where dummy like nvl(:attr22, ' ');
ERROR at line 1:
ORA-01560: LIKE pattern contains partial or illegal character

(In this case, multibyte characters set into a bind variable before executing a query)


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