MySQL: LOWER Function

MySQL LOWER Function

In this guide, we will explain how to use the MySQL LOWER function with syntax and examples.

Description

The MySQL LOWER function converts all characters in the specified string to lowercase. If there are characters in the string that are not letters, they are unaffected by this function.

Syntax

The syntax for the LOWER function in MySQL is:

LOWER( string )

Parameters or Arguments

string

The string to convert to lowercase.

Note

  • The LOWER function will convert the characters using the current character mapping set, which is latin1, by default.
  • The LCASE function is a synonym for the LOWER function.

Applies To

The LOWER function can be used in the following versions :

  • MySQL 5.7, MySQL 5.6, MySQL 5.5, MySQL 5.1, MySQL 5.0, MySQL 4.1, MySQL 4.0, MySQL 3.23

Example

Let’s look at some LOWER function examples and explore how to use the LOWER function.

For example:

mysql> SELECT LOWER('Ad gl o b');
Result: 'ad gl o b'

mysql> SELECT LOWER('ADGLOB.IN 123   ');
Result: 'adglob.in 123   '

Next Topic : Click Here

This Post Has 2 Comments

Leave a Reply