Bagikan melalui


count operator

Applies to: ✅Microsoft FabricAzure Data ExplorerAzure MonitorMicrosoft Sentinel

Menghitung jumlah rekaman dalam kumpulan catatan input.

Syntax

T|count

Learn more about syntax conventions.

Parameters

Name Type Required Description
T string ✔️ Input tabular yang rekamannya akan dihitung.

Returns

Fungsi ini mengembalikan tabel dengan satu rekaman dan kolom jenis 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. Anda mungkin perlu mengubah nama tabel dalam contoh kueri agar sesuai dengan tabel di ruang kerja Anda.

Saat Anda menggunakan operator hitungan dengan nama tabel, seperti StormEvents, operator tersebut akan mengembalikan jumlah total rekaman dalam tabel tersebut.

StormEvents | count

Output

Count
59066

Untuk informasi tentang fungsi agregasi count(), lihat count() (fungsi agregasi).