Example
Convert the text to upper-case:
sql
SELECT UPPER('SQL Tutorial is FUN!');
Definition and Usage
The UPPER() function converts a string to upper-case.
Note: Also look at the LOWER() function.
Syntax
text
UPPER(text)
Parameter Values
| Parameter | Description |
|---|---|
| text | Required. The string to convert |
Technical Details
| Works in: | SQL Server (starting with 2008), Azure SQL Database, Azure SQL Data Warehouse, Parallel Data Warehouse |
|---|
More Examples
Example
Convert the text in "CustomerName" to upper-case:
sql
SELECT UPPER(CustomerName) AS UppercaseCustomerName
FROM Customers;