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 functions 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 functions examples and explore how to use the UPPER functions in SQL Server (Transact-SQL).
For example:
SELECT UPPER('adglob.in'); Result: 'ADGLOB.IN' SELECT UPPER('Adglob.In'); Result: 'ADGLOB.IN' SELECT UPPER('Adg Lob'); Result: 'ADG LOB'
Pingback: SQL Server: LOWER Function - Adglob Infosystem Pvt Ltd