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

# `initcap` 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 the first letter of each word in uppercase according to the collation of `expr`.
All other letters are in lowercase.
Words are delimited by white space.

## Syntax

```
initcap(expr)
```

## Arguments

* `expr`: A `STRING` expression.

## Returns

A `STRING`.

## Examples

```sql
> SELECT initcap('sPark sql');
 Spark Sql
```

## Related functions

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