Type.TableColumn

语法

Type.TableColumn(tableType as type, column as text) as type

简介

返回表类型 column 中列 tableType 的类型。

Example

返回 Customers 表中“名称”列的类型。

用法

let
    Customers = #table(
        type table [ID = Int64.Type, Name = text],
        {{1, "Contoso"}, {2, "Fabrikam"}}
    )
in
    Type.TableColumn(Value.Type(Customers), "Name")

输出

type text