Data Loader

 

LOWER Function in MS SQL Server and it's equivalent in MySQL

MSSQL

The LOWER function in MSSQL is used to convert a string into lower case. It's similar to UPPER function which converts the string to upper case.

Syntax

LOWER(string)

Examples

select lower('This is demo');
------------------------
this is demo
select lower(name) from emp;
-------------------------
smith
john
scott
thomas
LOWER function in MSSQL

MySQL

In MySQL the same functionality can be obtained by using LOWER or LCASE function.  The LCASE function in MySQL is a synonym for LOWER function.

Syntax

LOWER(string)
LCASE(string)

Example

mysql> select lower('This is Demo');
+-----------------------+
| lower('This is Demo') |
+-----------------------+
| this is demo |
+-----------------------+
1 row in set (0.00 sec)

mysql> select lcase('This is Demo');
+-----------------------+
| lcase('This is Demo') |
+-----------------------+
| this is demo |
+-----------------------+
1 row in set (0.00 sec)
LOWER or LCASE function in MySQL
 

Back to Converting Functions from MSSQL to MySQL