UPPER
Description
The UPPER function is used to convert all lowercase letters in the input string (str) to uppercase letters and return the converted string.
Syntax
Parameters
- str (string): The string that needs to be converted to uppercase.
Return Result
Returns a string where all lowercase letters have been converted to uppercase letters.
Example
- Convert a simple string:
- Convert strings containing numbers and special characters:
- Convert a string that is already in uppercase:
- Use the UPPER function in queries to process column data:
- Use in combination with other string functions:
Notes
- The UPPER function only applies to English letters contained in the input string. For other languages or special characters, the conversion effect may not meet expectations.
- When using the UPPER function, please ensure that the input string is in the correct format. If the input string is not valid text, the function may not work properly.