Table.Keys
Atgriež norādītās tabulas atslēgas.
Syntax
Table.Keys(
table as table
) as list
Remarks
Atgriež norādītās tabulas atslēgas.
Examples
Example #1
Iegūstiet tabulas atslēgu sarakstu.
let
table = Table.FromRecords({
[Id = 1, Name = "Hello There"],
[Id = 2, Name = "Good Bye"]
}),
tableWithKeys = Table.AddKey(table, {"Id"}, true),
keys = Table.Keys(tableWithKeys)
in
keys
Result:
{[Columns = {"Id"}, Primary = true]}
Category
Table.Transformation