次の方法で共有


count operator

Applies to: ✅Microsoft FabricAzure Data ExplorerAzure MonitorMicrosoft Sentinel

入力レコード セット内のレコード数を計算します。

Syntax

T|count

Learn more about syntax conventions.

Parameters

Name タイプ Required Description
T string ✔️ レコードをカウントする表形式の入力。

Returns

この関数は、1 つのレコードと long型の列を含むテーブルを返します。 The value of the only cell is the number of records in T.

Examples

The examples in this article use publicly available tables in the help cluster, such as the StormEvents table in the Samples database.

The examples in this article use publicly available tables, such as the Weather table in the Weather analytics sample gallery. ワークスペース内のテーブルと一致するように、クエリ例のテーブル名を変更する必要がある場合があります。

StormEvents などのテーブル名で count 演算子を使用すると、そのテーブル内のレコードの合計数が返されます。

StormEvents | count

Output

Count
59066

count() 集計関数の詳細については、「count() (集計関数)」を参照してください。