---
metadata:
  - name: generator
    content: Diplodoc Platform v5.63.0
alternate:
  - en/function-ref/CONTAINS_ARRAY
  - ru/function-ref/CONTAINS_ARRAY
  - href: en/function-ref/CONTAINS_ARRAY.md
    type: text/markdown
    title: Markdown version
csp:
  - script-src:
      - https://mc.yandex.ru
    img-src:
      - https://mc.yandex.ru
    connect-src:
      - https://mc.yandex.ru
      - wss://mc.yandex.ru
    child-src:
      - 'blob:'
      - https://mc.yandex.ru
    frame-src:
      - 'blob:'
      - https://mc.yandex.ru
    frame-ancestors:
      - 'blob:'
      - https://mc.yandex.ru
canonical: en/function-ref/CONTAINS_ARRAY.html
editable: false
vcsPath: en/function-ref/CONTAINS_ARRAY.md
---

# CONTAINS (array)

_Function `CONTAINS` is also found in the following categories: [String functions](CONTAINS.md)._

#### Syntax {#syntax}


```
CONTAINS( array, value )
```

#### Description {#description}
Returns `TRUE` if `array` contains `value`.

**Argument types:**
- `array` — `Array of fractional numbers | Array of integers | Array of strings`
- `value` — `Fractional number | Integer | String`


**Return type**: `Boolean`

#### Example {#examples}



| **[array]**   | **[value]**   | **CONTAINS([array], [value])**   |
|:--------------|:--------------|:---------------------------------|
| `'[1,2,3]'`   | `2`           | `True`                           |
| `'[1,2,3]'`   | `4`           | `False`                          |




#### Data source support {#data-source-support}

`ClickHouse 21.8`, `Files`, `Google Sheets`, `PostgreSQL 9.3`, `Trino`, `Yandex Documents`.
