My Oracle Support Banner

Trailing Space Significant In String Comparison (Doc ID 2669558.1)

Last updated on MAY 17, 2020

Applies to:

MySQL Server - Version 5.7 and later
Information in this document applies to any platform.


Trailing spaces are not significant for CHAR or VARCHAR comparisons performed with the "=" operator in MySQL 5.7 (as documented here), but it became significant with new default Character set and collation in MySQL 8.0.



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.