UCASE() or UPPER() Function in MySQL

Last Updated : 18 Aug, 2026

The UCASE() and UPPER() functions in MySQL convert all lowercase letters in a string to uppercase.

  • Both functions return the same result.
  • They are useful for standardizing text data.
  • They do not change numbers or special characters.

Syntax

UCASE(string);

or

UPPER(string);

Example

SELECT UCASE('hello world') AS result;

Output:

Screenshot-2026-08-14-170025

Using UPPER():

SELECT UPPER('hello world') AS result;

Output:

Screenshot-2026-08-14-170025

Example with Table

Consider an employees table:

Screenshot-2026-08-14-170426

To convert employees names to uppercase:

SELECT employee_id, UPPER(employee_name) AS employee_name
FROM employees;

Output:

Screenshot-2026-08-14-170639

Note: UCASE() and UPPER() are equivalent in MySQL.

Comment

Explore