Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert strings to UPPERCASE in SQL Server

What is the T-SQL function for converting strings into upper case in SQL Server?

like image 490
user688609 Avatar asked Apr 02 '11 04:04

user688609


People also ask

How do I convert a string to uppercase in SQL?

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

How do I convert lowercase to uppercase in SQL?

In SQL Server, you can convert any lowercase string to uppercase by using the UPPER() function. To use it, simply pass the string as an argument when calling the function.

How do you capitalize every word in SQL?

Use the INITCAP() function to convert a string to a new string that capitalizes the first letter of every word. All other letters will be lowercase. This function takes one parameter as a string and changes the capitalization for each word as described.

What is upper case function in SQL?

UPPER() : This function in SQL Server helps to convert all the letters of the given string to Uppercase. If the given string contains special characters or numeric values, then they will remain unchanged by this function. Syntax : UPPER( str )


1 Answers

UPPER

SELECT UPPER(LastName) + ', ' + FirstName AS Name FROM Person.Person 
like image 109
Mitch Wheat Avatar answered Nov 08 '22 23:11

Mitch Wheat