แชร์ผ่าน


Table.PrefixColumns

ไวยากรณ์

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

เกี่ยวกับ

แสดงตารางที่ชื่อคอลัมน์ทั้งหมดจาก table ที่ระบุมีคํานําหน้าเป็นข้อความprefixที่กําหนด บวกจุดมหัพภาคในแบบฟอร์มprefix.ColumnName

ตัวอย่างที่ 1

นําหน้าคอลัมน์ด้วย "MyTable" ในตาราง

การใช้งาน

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

เอาท์พุท

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