Comparing Blank Padded Literals With CHAR Data Type Column
Last updated on NOVEMBER 06, 2015
Applies to:Oracle Database - Enterprise Edition - Version 188.8.131.52 to 184.108.40.206 [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