MariaDB: UPPER Function
This MariaDB tutorial explains how to use the MariaDB UPPER function with syntax and examples.
Description
The MariaDB UPPER function converts all characters in the specified string to uppercase. If there are characters in the string that are not letters, they are unaffected by this function.
Syntax
The syntax for the UPPER function in MariaDB is:
UPPER( string )
Parameters or Arguments
- string
- The string to convert to uppercase.
Note
- The UPPER function will convert the characters using the current character mapping set, which is latin1, by default.
- The UCASE function is a synonym for the UPPER function.
Applies To
The UPPER function can be used in the following versions of MariaDB:
- MariaDB 10
Example
Let's look at some MariaDB UPPER function examples and explore how to use the UPPER function in MariaDB.
For example:
SELECT UPPER('TechOnTheNet.com'); Result: 'TECHONTHENET.COM' SELECT UPPER('Learn about MariaDB with TechOnTheNet.com!'); Result: 'LEARN ABOUT MARIADB WITH TECHONTHENET.COM!'
Advertisements