---
title: ucase function
description: Learn the syntax of the ucase function of the SQL language in Databricks SQL and Databricks Runtime.
canonical_url: https://docs.databricks.com/aws/en/sql/language-manual/functions/ucase
---

# `ucase` function

**Applies to:** ![check marked yes](https://docs.databricks.com/aws/en/images/icons/check.png) Databricks SQL ![check marked yes](https://docs.databricks.com/aws/en/images/icons/check.png) Databricks Runtime

Returns `expr` with all characters changed to uppercase according to the collation of `expr`.
This function is a synonym for [`upper` function](https://docs.databricks.com/aws/en/sql/language-manual/functions/upper.md).

## Syntax

```
ucase(expr)
```

## Arguments

* `expr`: A `STRING` expression.

## Returns

A `STRING`.

## Examples

```sql
> SELECT ucase('SparkSql');
 SPARKSQL
```

## Related functions

* [`lower` function](https://docs.databricks.com/aws/en/sql/language-manual/functions/lower.md)
* [`initcap` function](https://docs.databricks.com/aws/en/sql/language-manual/functions/initcap.md)
* [`upper` function](https://docs.databricks.com/aws/en/sql/language-manual/functions/upper.md)
