---
title: "ZERO_BLOB"
description: "La funci\u00F3n SQL ZERO_BLOB genera un BLOB con valores de 0 bytes."
language: es
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/es/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:22Z
license: https://documentation.invantive.eu/es/
---

## Sintaxis
```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))
```

## Propósito
La función SQL `ZERO_BLOB` genera un `blob` con valores de 0-byte.

Véase también [[RANDOM_BLOB]].

Parámetros:
- Longitud (`int32`): Genera una imagen `blob` con esta longitud en bytes, desde 0 hasta 67,108,864.

Devuelve: Un `blob` con valores de 0-byte.

## Ejemplos
El siguiente ejemplo genera una imagen `blob` de 100 bytes con valores de 0-byte y obtiene la longitud en bytes:
```sql
select length(zero_blob(100))

-------------------
100
```
El siguiente ejemplo muestra que la longitud de `null` da como resultado `null`:
```sql
select zero_blob(null)

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

```

