다음을 통해 공유


Table.SingleRow

문법

Table.SingleRow(table as table) as record  

소개

한 행 안에 있는 단일 행 table을 반환합니다. table가 정확히 하나의 행을 포함하지 않으면 오류가 발생합니다.

예제 1

테이블의 단일 행을 반환합니다.

사용법

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

출력

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