Nóta
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as shíniú isteach nó eolairí a athrú.
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as eolairí a athrú.
Syntax
Type.TableKeys(tableType as type) as list
About
Returns the possibly empty list of keys for the given table type.
Each key is described by a record in the following form:
Columns: a list of the column names that define the keyPrimary:trueif the key is the table's primary key; otherwise,false
Example 1
Return the key information for a table type.
Usage
let
BaseType = type table [ID = number, Name = text],
AddKey = Type.AddTableKey(BaseType, {"ID"}, true),
DetailsOfKeys = Type.TableKeys(AddKey)
in
DetailsOfKeys
Output
{[Columns = {"ID"}, Primary = true]}