- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Is there a MySQL command to convert a string to lowercase?
Yes, you can use the LOWER() or LCASE() from MySQL to convert a string to lowercase. Both methods can be used to convert the string into lowercase.
Here is the syntax of LOWER() −
lower(‘yourStringValue);
Or you can use LCASE().
The syntax is as follows −
lcase(‘yourStringValue);
Let us see an example of LOWER(). The query is as follows −
mysql> select lower('JOhN');
Here is the output −
+---------------+ | lower('JOhN') | +---------------+ | john | +---------------+ 1 row in set (0.00 sec)
Let us see an example of LCASE(). The query is as follows −
mysql> select lcase('JOhN');
The following is the output −
+---------------+ | lcase('JOhN') | +---------------+ | john | +---------------+ 1 row in set (0.00 sec)
Advertisements