MySQL: UPPER Function

  • Post author:
  • Post category:MySQL
  • Post comments:1 Comment
MySQL UPPER Function

In this guide, we will explain how to use the MySQL UPPER function with syntax and examples.

Description

The MySQL 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 MySQL 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 :

  • MySQL 5.7, MySQL 5.6, MySQL 5.5, MySQL 5.1, MySQL 5.0, MySQL 4.1, MySQL 4.0, MySQL 3.23

Example

Let’s look at some UPPER function examples and explore how to use the UPPER function.

For example:

mysql> SELECT UPPER('Ad gl o b');
Result: 'AD GL O B'

mysql> SELECT UPPER('Adglob.in 123   ');
Result: 'ADGLOB.IN 123   '

Learn More : Click Here

This Post Has One Comment

Leave a Reply