> ## 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.

> 0 から始まるほぼすべての自然数を含む、`number` という名前の UInt64 カラムを 1 つだけ持つシステムテーブル。

# system.numbers

<div id="description">
  ## 説明
</div>

このテーブルには `number` という名前の UInt64 型のカラムが 1 つあり、0 から始まるほぼすべての自然数が格納されています。

このテーブルは、テストや総当たり検索が必要な場合に利用できます。

このテーブルの読み取りは並列化されません。

<div id="columns">
  ## カラム
</div>

{/*AUTOGENERATED_END*/}

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

```sql theme={null}
SELECT * FROM system.numbers LIMIT 10;
```

```response theme={null}
┌─number─┐
│      0 │
│      1 │
│      2 │
│      3 │
│      4 │
│      5 │
│      6 │
│      7 │
│      8 │
│      9 │
└────────┘

10 rows in set. Elapsed: 0.001 sec.
```

出力は述語でも絞り込めます。

```sql theme={null}
SELECT * FROM system.numbers WHERE number < 10;
```

```response theme={null}
┌─number─┐
│      0 │
│      1 │
│      2 │
│      3 │
│      4 │
│      5 │
│      6 │
│      7 │
│      8 │
│      9 │
└────────┘

10 rows in set. Elapsed: 0.001 sec.
```
