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

> 包含一个名为 `number` 的 UInt64 列的系统表，该列包含从零开始几乎所有的自然数。

# system.numbers

<div id="description">
  ## 描述
</div>

此表包含一个名为 `number` 的 UInt64 列，其中存放了几乎所有从零开始的自然数。

你可以将此表用于测试，或在需要进行穷举搜索时使用。

从此表读取数据时不支持并行化。

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