TestingDocs.com
Software Testing website
  • Automation
    • Selenium
    • JBehave Framework
  • Tutorials
    • MySQL Tutorials
    • Testlink
    • Maven
    • Git
  • IDEs
    • IntelliJ IDEA
    • Eclipse
  • Flowcharts
    • Flowgorithm
    • Raptor
  • About

MySQL

MySQL LOWER Function

Overview

In this tutorial, we will learn about MySQL LOWER Function with some examples. We can use this function to convert the characters in the given string to lowercase format.

MySQL LOWER Function

The LOWER() function returns the string with all characters in the lowercase.

Syntax

The general syntax of the function is as follows:

LOWER(<string>)

For example:

LOWER(‘ABC’) will output ‘abc’

Examples

Let’s use the function and check the output of the function in this example.

mysql> SELECT LOWER(‘MySQL Tutorials’);
+————————–+
| LOWER(‘MySQL Tutorials’) |
+————————–+
| mysql tutorials |
+————————–+
1 row in set (0.00 sec)

In this example, we will convert the column values of a database table into lower case. Let’s use the Country database table from the world MySQL database. The column is the Name column that contains the country name. Since the table has many rows will filter the output to rows from the ‘North America’ continent.

mysql> SELECT Name, LOWER(Name)
-> FROM Country
-> WHERE Continent=’North America’;

 

—

MySQL Tutorials

MySQL Tutorials on this website:

https://www.testingdocs.com/mysql-tutorials-for-beginners/

For more information on MySQL Database:

https://www.mysql.com/

Related Posts

MySQL /

Launch DataGrip on Windows

MySQL /

Install DataGrip IDE on Windows 11

MySQL /

New MySQL Connection in Workbench

MySQL /

Command-Line MySQL Client

MySQL /

Start MySQL Client on Windows 11

‹ MySQL RPAD Function› MySQL UPPER Function

Recent Posts

  • Scaler Academy – An Online Learning Platform
  • Difference between PHP and JavaScript?
  • MS Access Data Types
  • Install RAPTOR Avalonia on CentOS
  • Download RAPTOR Avalonia Edition on Windows
  • npm doctor command
  • Build & Run CLion Project
  • Create New CLion C Project on Windows
  • Configure CLion Toolchains on Windows
  • Launch CLion IDE on Windows

Back to Top

Links

  • Contact
  • Privacy Policy
  • Cookie Policy

www.TestingDocs.com