ClickHouse/docs/fa/sql-reference/table-functions/numbers.md
Ivan Blinkov d91c97d15d
[docs] replace underscores with hyphens (#10606)
* Replace underscores with hyphens

* remove temporary code

* fix style check

* fix collapse
2020-04-30 21:19:18 +03:00

1.1 KiB
Raw Blame History

machine_translated machine_translated_rev toc_priority toc_title
true d734a8e46d 39 اعداد

اعداد

numbers(N) Returns a table with the single number ستون (اوینت64)که شامل اعداد صحیح از 0 تا 1. numbers(N, M) - بازگرداندن یک جدول با تک number ستون (اوینت64) که شامل اعداد صحیح از نفر به (نفر + متر - 1).

شبیه به system.numbers جدول را می توان برای تست و تولید مقادیر پی در پی استفاده کرد, numbers(N, M) کارایی بیشتر از system.numbers.

نمایش داده شد زیر معادل هستند:

SELECT * FROM numbers(10);
SELECT * FROM numbers(0, 10);
SELECT * FROM system.numbers LIMIT 10;

مثالها:

-- Generate a sequence of dates from 2010-01-01 to 2010-12-31
select toDate('2010-01-01') + number as d FROM numbers(365);

مقاله اصلی