My Oracle Support Banner

Understanding the character comparison difference between JDBC and SQL*Plus (Doc ID 1131104.1)

Last updated on JULY 23, 2021

Applies to:

JDBC - Version 11.1.0.7 and later
Information in this document applies to any platform.

Symptoms

Char datatype implies fixed length, so data in a CHAR column in a table is appended with whitespaces if the inserted value is shorter than the defined length.


In this case,  a single "1"€ does not match the value in the table. This is not the same result as SQL*Plus.

Cause

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
Symptoms
Cause
Solution
References


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