Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to convert the case of mysql string

Shulou Source: shulou.com Published: 2022-05-31 10:42:37 09月23日 Update

This article focuses on "how to convert the case of mysql strings". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to convert the case of mysql strings.

1. The upper and ucase functions are used to convert a string to uppercase.

SELECT UPPER ('MySQL string function') AS str1, UCASE ('MySQL string function') AS str2;str1 | str2 |-+-+ MYSQL string function | MYSQL string function |

2. The lower and lcase functions are used to convert a string to lowercase.

SELECT LOWER ('MySQL string function') AS str1, LCASE ('MySQL string function') AS str2;str1 | str2 |-+-+ mysql string function | mysql string function | so far, I believe you have a deeper understanding of "how to convert the case of mysql strings". You might as well do it in practice! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Tags: Characters strings functions size content form learning practical deeper interest uppercase practicality practical lowercase easy to operate method more friends websites channels Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux Shulou Tech Info Docker Xiaomi MariaDB