A column in mysql consists of a 'SQL' and another value is 'sql'.
select col from table_name where col = 'SQL';
Does this return both SQL and sql.
A column in mysql consists of a 'SQL' and another value is 'sql'.
select col from table_name where col = 'SQL';
Does this return both SQL and sql.
Case-sensitivity is determined by the collation of a column. The default collations are case-insensitive, so the string comparison you show would match both "sql" and "SQL".
Read https://dev.mysql.com/doc/refman/8.0/en/case-sensitivity.html
If your column has a binary collation, or if the column is a binary string (data types BINARY
, VARBINARY
, BLOB
), then the string comparison will be case-sensitive.