語法
Table.SingleRow(table as table) as record
關於
傳回單列 table 的單一資料列。 如果 有 table 超過一列,則會產生錯誤。
範例
返回資料表中的單一資料列。
使用方式
Table.SingleRow(Table.FromRecords({[CustomerID = 1, Name = "Bob", Phone = "123-4567"]}))
輸出
[CustomerID = 1, Name = "Bob", Phone = "123-4567"]