MySQL LCASE() Function

The LCASE() function in MySQL is used to convert any text value to lower-case letters. This is helpful when you want to make your data case-insensitive or just to display information in a uniform style.

Tutorials dojo strip

MySQL LCASE Function Syntax

SQL

MySQL LCASE Function Example

This query converts the text “SQL Tutorial is FUN!” to all lower-case letters:

SQL

Note: This example works in MySQL, but does not work in SQLite or the TechKubo Playground.

MySQL LCASE Function Parameters

ParameterDescription
textRequired. The string to convert.

MySQL LCASE Function Patients Table Example

This query will return the first_name from the Patients table as all lower-case letters:

SQL

Note: This example works in MySQL, but does not work in SQLite or the TechKubo Playground.

MySQL LCASE Function Notes

  • The LCASE() function converts all characters in a string to lower-case.
  • This function is identical to LOWER(); both work the same way in MySQL.
  • If you use SQLite or the TechKubo Playground, use LOWER() instead—LCASE() will return an error there.
  • LCASE() works in MySQL 4.0 and newer.

Tutorials dojo strip