次の方法で共有


project-keep operator

Applies to: ✅Microsoft FabricAzure Data ExplorerAzure MonitorMicrosoft Sentinel

出力に保持する入力の列を選択します。 結果には、引数として指定された列のみが表示されます。 その他の列は除外されます。

Syntax

T| project-keepColumnNameOrPattern [, ...]

Learn more about syntax conventions.

Parameters

Name タイプ Required Description
T string ✔️ 列を保持する表形式の入力。
ColumnNameOrPattern string ✔️ 出力に保持する 1 つ以上の列名または列ワイルドカード パターン。

Returns

引数として名前を指定された列を含むテーブル。 入力テーブルと同じ数の行を含みます。

Tip

元のテーブルに存在する列、またはクエリの一部として計算された列を project-keep することができます。

Note

結果の列の順序は、テーブル内の元の順序によって決まります。 引数として指定された列だけが保持されます。 他の列は結果から除外されます。

Example

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. ワークスペース内のテーブルと一致するように、クエリ例のテーブル名を変更する必要がある場合があります。

このクエリは、"session" という単語を含む ConferenceSessions テーブルから列を返します。

ConferenceSessions
| project-keep session*

Output

出力テーブルには、最初の 10 件の結果のみが表示されます。

sessionid session_title session_type session_location
COM64 フォーカス グループ: Azure Data Explorer Focus Group Online
COM65 フォーカス グループ: Azure Data Explorer Focus Group Online
COM08 チームに質問する: Azure Data Explorer チームに質問する Online
COM137 フォーカス グループ: Azure Data Explorer の組み込みのダッシュボードとスマート自動スケーリング機能 Focus Group Online
CON-PRT157 ラウンドテーブル: Azure Data Explorer デプロイの監視と管理 Roundtable Online
CON-PRT103 Roundtable: 高度な Kusto クエリ言語のトピック Roundtable Online
CON-PRT157 ラウンドテーブル: Azure Data Explorer デプロイの監視と管理 Roundtable Online
CON-PRT103 Roundtable: 高度な Kusto クエリ言語のトピック Roundtable Online
CON-PRT130 ラウンドテーブル: Azure Data Explorer を使用したデータの探索と視覚化 Roundtable Online
CON-PRT130 ラウンドテーブル: Azure Data Explorer を使用したデータの探索と視覚化 Roundtable Online
... ... ... ...
  • To choose what columns from the input to exclude from the output, use project-away.
  • 列名の変更には project-rename を使用します。
  • 列の並べ替えには project-reorder を使用します。