select_columns
Selects specific columns from a table.
Syntax
select_columns(<table>, <columns>)
| Parameter | Type | Description |
|---|---|---|
| table | Table | The table to operate on. |
| columns | Array | The Columns value. |
Return values
Table
Usage
Returns only the ID, total price, and status columns from the orders table.
select_columns(orders, orders.id, orders.total_price, orders.status)