> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-mintlify-8a08bda2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> 使用 [Null] 表引擎创建具有指定结构的临时表。该函数主要用于方便编写测试和进行演示。

# null

使用 [Null](/zh/reference/engines/table-engines/special/null) 表引擎创建具有指定结构的临时表。根据 `Null` 引擎的特性，表中的数据会被忽略，并且该表会在查询执行后立即被删除。该函数主要用于方便编写测试和进行演示。

<div id="syntax">
  ## 语法
</div>

```sql theme={null}
null('structure')
```

<div id="argument">
  ## 参数
</div>

* `structure` — 列名及列类型的列表。[String](/zh/reference/data-types/string)。

<div id="returned_value">
  ## 返回值
</div>

一个具有指定结构的 `Null` 引擎临时表。

<div id="example">
  ## 示例
</div>

使用 `null` 函数的查询：

```sql theme={null}
INSERT INTO function null('x UInt64') SELECT * FROM numbers_mt(1000000000);
```

可替代三个查询：

```sql theme={null}
CREATE TABLE t (x UInt64) ENGINE = Null;
INSERT INTO t SELECT * FROM numbers_mt(1000000000);
DROP TABLE IF EXISTS t;
```

<div id="related">
  ## 相关
</div>

* [Null 表引擎](/zh/reference/engines/table-engines/special/null)
