Syntax
Table.SingleRow(table as table) as record
About
返回一行中的单行 table。
table如果不包含完全相同的一行,则会引发错误。
示例 1
返回表中的单个行。
用法
Table.SingleRow(Table.FromRecords({[CustomerID = 1, Name = "Bob", Phone = "123-4567"]}))
输出
[CustomerID = 1, Name = "Bob", Phone = "123-4567"]