Comparing Blank Padded Literals With CHAR Data Type Column
(Doc ID 2066651.1)
Last updated on FEBRUARY 19, 2019
Applies to:Oracle Database - Enterprise Edition - Version 126.96.36.199 to 188.8.131.52 [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.
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