Udostępnij przez


count operator

Applies to: ✅Microsoft FabricAzure Data ExplorerAzure MonitorMicrosoft Sentinel

Oblicza liczbę rekordów w zestawie rekordów wejściowych.

Syntax

T|count

Learn more about syntax conventions.

Parameters

Name Typ Required Description
T string ✔️ Dane wejściowe tabelaryczne, których rekordy mają być zliczane.

Returns

Ta funkcja zwraca tabelę z pojedynczym rekordem i kolumną typu 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. Może być konieczne zmodyfikowanie nazwy tabeli w przykładowym zapytaniu, aby było zgodne z tabelą w obszarze roboczym.

Gdy używasz operatora count z nazwą tabeli, na przykład StormEvents, zwróci całkowitą liczbę rekordów w tej tabeli.

StormEvents | count

Output

Count
59066

Aby uzyskać informacje o funkcji agregacji count(), zobacz count() (funkcja agregacji).