0

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.

jarlh
  • 40,041
  • 8
  • 39
  • 58

1 Answers1

0

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.

Bill Karwin
  • 499,602
  • 82
  • 638
  • 795