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

> 指定された 構造 を持つ一時テーブルを Null テーブルエンジン で作成します。この関数は、テストの作成やデモのために使用されます。

# null

指定された 構造 を持つ一時テーブルを [Null](/ja/reference/engines/table-engines/special/null) Null テーブルエンジン で作成します。`Null`-engine の特性により、テーブルの data は無視され、テーブル自体はクエリの実行直後にただちに drop されます。この関数は、テストの作成やデモのために使用されます。

<div id="syntax">
  ## 構文
</div>

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

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

* `structure` — カラムとその型の一覧。[String](/ja/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);
```

3つのクエリに置き換えられます:

```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テーブルエンジン](/ja/reference/engines/table-engines/special/null)
