跳至主要内容

Table.PrefixColumns

傳回資料表,其中所有資料行前面都已經加上指定的文字。

Syntax

Table.PrefixColumns(
table as table,
prefix as text
) as table

Remarks

傳回資料表,其中來自所提供之 table 的所有資料行名稱前面都以 prefix.ColumnName 的格式加上指定的文字 prefix 與句號。

Examples

Example #1

在資料表中的資料行前面加上 "mytable"。

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

Result:

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

Category

Table.Column operations