SQL Server: UPPER Function
This SQL Server tutorial explains how to use the UPPER function in SQL Server (Transact-SQL) with syntax and examples.
Description
In SQL Server (Transact-SQL), the UPPER function converts all letters 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 SQL Server (Transact-SQL) is:
UPPER( string )
Parameters or Arguments
- string
- The string to convert to uppercase.
Note
- See also the LOWER function.
Applies To
The UPPER function can be used in the following versions of SQL Server (Transact-SQL):
- SQL Server 2017, SQL Server 2016, SQL Server 2014, SQL Server 2012, SQL Server 2008 R2, SQL Server 2008, SQL Server 2005
Example
Let's look at some SQL Server UPPER function examples and explore how to use the UPPER function in SQL Server (Transact-SQL).
For example:
SELECT UPPER('techonthenet.com'); Result: 'TECHONTHENET.COM' SELECT UPPER('TechOnTheNet.com'); Result: 'TECHONTHENET.COM' SELECT UPPER('Tech on the Net'); Result: 'TECH ON THE NET'
Advertisements