KnowledgeBoat Logo

Informatics Practices

Explain the UCASE() SQL function using suitable examples.

SQL Queries

2 Likes

Answer

The UCASE()/UPPER() function converts the given string into uppercase. The syntax is UPPER(str) or UCASE(str). It returns the argument str with all letters capitalized, and the return value has the same data type as the argument str. For example,

SELECT UPPER('Large') "Uppercase";
Output
+-----------+
| Uppercase |
+-----------+
| LARGE     |
+-----------+

Answered By

2 Likes


Related Questions