> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# upper

> Converts a string to upper-case.

Converts a string to upper-case.

## Syntax

```haskell theme={null}
upper(str)
```

## Parameters

* `str`: the string to convert. If `str` is not a string type, it will try implicit cast first.

## Return values

Return an upper-case string.

## Examples

```plaintext theme={null}
MySQL [test]> select C_String, upper(C_String) from ex_iceberg_tbl;
+-------------------+-------------------+
| C_String          | upper(C_String)   |
+-------------------+-------------------+
| Hello, StarRocks! | HELLO, STARROCKS! |
| Hello, World!     | HELLO, WORLD!     |
+-------------------+-------------------+
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.