---
title: "|| (pipe pipe sign) operator"
description: Learn the syntax of the || (pipe pipe sign) operator of the SQL language in Databricks SQL.
canonical_url: https://docs.databricks.com/aws/en/sql/language-manual/functions/pipepipesign
---

# `||` (pipe pipe sign) operator

**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 the concatenation of `expr1` and `expr2`. This operator is a synonym for [`concat` function](https://docs.databricks.com/aws/en/sql/language-manual/functions/concat.md).

## Syntax

```
expr1 || expr2
```

## Arguments

* `expr1`: A STRING, BINARY or ARRAY of STRING or BINARY expression.
* `expr2`: An expression with type matching `expr1`.

## Returns

The result type matches the argument types.

## Examples

```sql
> SELECT 'Spark' || 'SQL';
 SparkSQL
> SELECT array(1, 2, 3) || array(4, 5) || array(6);
 [1,2,3,4,5,6]
```

## Related functions

* [`concat` function](https://docs.databricks.com/aws/en/sql/language-manual/functions/concat.md)
* [`array_join` function](https://docs.databricks.com/aws/en/sql/language-manual/functions/array_join.md)
* [`array_union` function](https://docs.databricks.com/aws/en/sql/language-manual/functions/array_union.md)
* [`concat_ws` function](https://docs.databricks.com/aws/en/sql/language-manual/functions/concat_ws.md)
