跳至主要内容

Table.SingleRow

傳回資料表的單一資料列。

Syntax

Table.SingleRow(
table as table
) as record

Remarks

傳回一個資料列 table 中的單一資料列。如果 table 有多個資料列,則引發錯誤。

Examples

Example #1

傳回資料表中的單一資料列。

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

Result:

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

Category

Table.Row operations