How to convert the case of mysql string
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!