Table.SingleRow

语法

Table.SingleRow(table as table) as record  

关于

返回包含一行 table 中的单行。 如果 table 并非恰好包含一行,则会引发错误。

示例 1

返回表中的单行。

使用情况

Table.SingleRow(Table.FromRecords({[CustomerID = 1, Name = "Bob", Phone = "123-4567"]}))

输出

[CustomerID = 1, Name = "Bob", Phone = "123-4567"]