Comparing Blank Padded Literals With CHAR Data Type Column

(Doc ID 2066651.1)

Last updated on NOVEMBER 06, 2015

Applies to:

Oracle Database - Enterprise Edition - Version to [Release 8.0.6 to 12.1]
Information in this document applies to any platform.


The expression 'A'='A     '  (notice the padded blanks) is evaluated to be TRUE when i) literal text is used or ii) a column is used with data type CHAR.

But it is evaluated correctly when the data type is VARCHAR2.





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