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"]