2020-06-18 08:24:31 +00:00
|
|
|
# system.numbers {#system-numbers}
|
|
|
|
|
|
|
|
This table contains a single UInt64 column named `number` that contains almost all the natural numbers starting from zero.
|
|
|
|
|
|
|
|
You can use this table for tests, or if you need to do a brute force search.
|
|
|
|
|
|
|
|
Reads from this table are not parallelized.
|
2020-08-06 08:50:29 +00:00
|
|
|
|
2020-12-03 19:27:55 +00:00
|
|
|
**Example**
|
|
|
|
|
|
|
|
```sql
|
|
|
|
:) SELECT * FROM system.numbers LIMIT 10;
|
|
|
|
```
|
|
|
|
|
|
|
|
```text
|
|
|
|
┌─number─┐
|
|
|
|
│ 0 │
|
|
|
|
│ 1 │
|
|
|
|
│ 2 │
|
|
|
|
│ 3 │
|
|
|
|
│ 4 │
|
|
|
|
│ 5 │
|
|
|
|
│ 6 │
|
|
|
|
│ 7 │
|
|
|
|
│ 8 │
|
|
|
|
│ 9 │
|
|
|
|
└────────┘
|
|
|
|
|
2021-07-29 15:20:55 +00:00
|
|
|
10 rows in set. Elapsed: 0.001 sec.
|
2020-12-03 19:27:55 +00:00
|
|
|
```
|
|
|
|
|
2021-09-19 20:05:54 +00:00
|
|
|
[Original article](https://clickhouse.com/docs/en/operations/system-tables/numbers) <!--hide-->
|