Trusted answers to developer questions
Trusted Answers to Developer Questions

Related Tags

sql
mysql
ucase
communitycreator

What is UCASE() in SQL?

Harris Amjad

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

The UCASE() function converts a string sent as a parameter to uppercase.

Figure 1 shows a visual representation of the UCASE() function.

Figure 1: Visual representation of UCASE() function

This method has the same functionality as the UPPER() method.

Syntax

UCASE(string)

Parameter

The UCASE() function takes in a string that needs to be converted to uppercase as a parameter.

Return value

The UCASE() function returns the uppercase version of a string sent as a parameter.

If a number is sent as a parameter, then UCASE() returns the number unchanged.

Example

-- string
SELECT UCASE('hello');
-- number
SELECT UCASE(123);

RELATED TAGS

sql
mysql
ucase
communitycreator

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

Keep Exploring