My Oracle Support Banner

PL/SQL Raises ORA-01403 With Where Char Column Comparing To Varchar2 Bind Variable, Hard-Coded Condition Works (Doc ID 1175113.1)

Last updated on DECEMBER 06, 2019

Applies to:

PL/SQL - Version and later
Information in this document applies to any platform.


A PL/SQL procedure is failing to run successfully.  The implicit cursor embedded in the block (SELECT statement) is returning 0 rows:

The following SQL will generate the test table & data to illustrate the issue. Notice that the first record is only 4 characters but the following three records have 5 due to the space added to the end.


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

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