使用英语阅读

通过


Record.ToTable

语法

Record.ToTable(record as record) as table

关于

返回一个表,其中包含 NameValue 列,且 record 中的每个字段都占一行。

示例 1

从记录返回表。

使用情况

Record.ToTable([OrderID = 1, CustomerID = 1, Item = "Fishing rod", Price = 100.0])

输出

Table.FromRecords({
    [Name = "OrderID", Value = 1],
    [Name = "CustomerID", Value = 1],
    [Name = "Item", Value = "Fishing rod"],
    [Name = "Price", Value = 100]
})