---
metadata:
  - name: generator
    content: Diplodoc Platform v5.63.0
alternate:
  - en/function-ref/SHA256
  - ru/function-ref/SHA256
  - href: en/function-ref/SHA256.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/SHA256.html
editable: false
vcsPath: en/function-ref/SHA256.md
---

# SHA256



#### Syntax {#syntax}


```
SHA256( value )
```

#### Description {#description}
Returns the SHA-256 hash of `value` as a hexadecimal string.

**Argument types:**
- `value` — `String`


**Return type**: `String`

#### Example {#examples}

```
SHA256("DataLens") = "7466C4153CEB3184D0FDABEA1C7EAE86B24E184191C197845B96E1D8B3817F98"
```


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

`ClickHouse 21.8`, `MySQL 5.7`, `Oracle Database 12c (12.1)`, `PostgreSQL 9.3`, `Trino`, `YDB`.
