UPPER function in SQL Server
The article will explore and show you how to use UPPER function in SQL Server to convert letters in a specified string to uppercase.
The article will explore and show you how to use UPPER function in SQL Server to convert letters in a specified string to uppercase.
Describe
UPPER function in SQL Server converts all the letters in the string specified to uppercase. If there are characters in a string other than letters, it is not affected by this function.
Syntax
To use UPPER function in SQL Server, we use the following syntax:
UPPER(chuoi)
Parameters :
- string : the string you want to convert, can be a string of characters with text, variables, string expressions or table columns.
Note :
- See more LOWER functions for reverse conversion.
- The UPPER function can be used in later versions of SQL Server: SQL Server 2017, SQL Server 2016, SQL Server 2014, SQL Server 2012, SQL Server 2008 R2, SQL Server 2008, and SQL Server 2005.
For example
Take a look and explore some examples of UPPER functions in SQL Server.
SELECT UPPER('quantrimang.com');
Result: 'QUANTRIMANG.COM'
SELECT UPPER('QuanTriMang.com');
Result: 'QUANTRIMANG.COM'
SELECT UPPER('Quan Tri Mang');
Result: 'QUAN TRI MANG'
Previous article: SUBSTRING function in SQL Server
Next lesson: ABS function in SQL Server
Update 25 May 2019
You should read it
- Save time with these text formatting functions in Microsoft Excel
- The LOWER, UPPER and PROPER case-conversion functions in Excel
- Visit the unique 'sky village' built on the roof of the shopping mall in Jakarta
- DAY function in SQL Server
- MIN function in SQL Server
- MAX function in SQL Server
- ABS function in SQL Server
- SUM function in SQL Server
- How to capitalize the first letter in Excel
- RIGHT function in SQL Server
- ROUND function in SQL Server
- AVG function in SQL Server
Maybe you are interested
We may be able to see the 'second moon' in the sky with the naked eye next May Popular strategies and strategies of Spammer Block strangers to contact you on Facebook Robots take away their current jobs, but they also create 20 new jobs in the future Why do you always bathe every day and still hate? The most bizarre things people ever bring to space