MySQL UCASE() Function
THE WORLD'S LARGEST WEB DEVELOPER SITE

MySQL UCASE() Function

❮ MySQL Functions

Example

Convert the text to upper-case:

SELECT UCASE("SQL Tutorial is FUN!");
Try it Yourself »

Definition and Usage

The UCASE() function converts a string to upper-case.

Note: The UPPER() function is a synonym for the UCASE() function.

Syntax

UCASE(text)

Parameter Values

Parameter Description
text Required. The string to convert to upper-case

Technical Details

Works in: MySQL 5.7, MySQL 5.6, MySQL 5.5, MySQL 5.1, MySQL 5.0, MySQL 4.1, MySQL 4.0, MySQL 3.23

More Examples

Example

Convert the text in "CustomerName" to upper-case:

SELECT UCASE(CustomerName) AS UppercaseCustomerName
FROM Customers;
Try it Yourself »

❮ MySQL Functions