Utilities.GetColumns
Module | Utilities |
---|---|
Method | |
Library | Core |
Action | List the columns in a table, giving the names and data types. |
Parameters |
WarningOnly use 'false' if cells cannot be null and no rows can have 'missing' columns (i.e. not a 'jagged' table). |
Return values |
|
Example | Example 1 (where the @table = SELECT "string" as stringCol, 42 AS intCol, true AS boolCol, 1.23 AS doubleCol, NULL AS nullCol, "2023-10-19T14:07:00.895Z" AS timepointCol; Utilities.GetColumns(Table:@table); Returns: ColumnName DataType ========== ======== "boolCol" "integer" "doubleCol" "float" "intCol" "integer" "nullCol" NULL "stringCol" "string" "timepointCol" "string" Example 2 (Another way to scan just the first row for column names). @myTable = Whatever.GetSomeData(); @firstRow = SELECT * FROM @myTable LIMIT 1; @cols = Utilities.GetColumns(Table: @firstRow); |
Platforms |
|
Notes |
|