---
title: "ZERO_BLOB"
description: "ZERO_BLOB SQL\u95A2\u6570\u306F\u30010\u30D0\u30A4\u30C8\u5024\u3092\u6301\u3064BLOB\u3092\u751F\u6210\u3057\u307E\u3059\u3002"
language: ja
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/ja/docs/invantive-universalsql/grammar/sql-functions/zero-blob
original: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/zero-blob
updated: 2026-12-04T14:57:32Z
license: https://documentation.invantive.eu/ja/
---

## 構文
```mermaid
%%{init: {
  'theme': 'base',
  'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
  'themeVariables': {
    'fontSize': '11px',
    'fontFamily': 'Arial'
  }
}}%%
flowchart LR
    Start((START)) --> ZERO_BLOB[ZERO_BLOB]:::quoted
    ZERO_BLOB --> End((END))
```

## 目的
`ZERO_BLOB` SQL関数は、0バイト値を持つ`blob`を生成します。

参照：[[RANDOM_BLOB]]。

パラメータ:
- 長さ(`int32`): バイト単位でこの長さの`blob`を生成します。範囲は0から67,108,864までです。

戻り値: 0バイト値を持つ`blob`。

## 例
次の例では、0バイト値を持つ100バイトの`blob`を生成し、バイト単位の長さを取得します:
```sql
select length(zero_blob(100))

-------------------
100
```
次の例は、`null`の長さが`null`と評価されることを示しています:
```sql
select zero_blob(null)

-------------------

```

