MySQL UPPER() Function

Example

Convert the text to upper-case:

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

Definition and Usage

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

Note: This function is equal to the UCASE() function.

Syntax

UPPER(text)

Parameter Values

Parameter Description
text Required. The string to convert

Technical Details

Works in: From MySQL 4.0

More Examples

Example

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

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

Copyright 1999-2023 by Refsnes Data. All Rights Reserved.