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

# `|` (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 bitwise `OR` of `expr1` and `expr2`.

## Syntax

```
expr1 | expr2
```

## Arguments

* `expr1`: An integral numeric type expression.
* `expr2`: An integral numeric type expression.

## Returns

The result type matches the widest type of `expr1` and `expr2`.

## Examples

```sql
> SELECT 3 | 5;
 7
```

## Related functions

* [`&` (ampersand sign) operator](https://docs.databricks.com/aws/en/sql/language-manual/functions/ampersandsign.md)
* [`~` (tilde sign) operator](https://docs.databricks.com/aws/en/sql/language-manual/functions/tildesign.md)
* [`^` (caret sign) operator](https://docs.databricks.com/aws/en/sql/language-manual/functions/caretsign.md)
* [`bit_count` function](https://docs.databricks.com/aws/en/sql/language-manual/functions/bit_count.md)
