Reference/cols

From Kx Wiki
Jump to: navigation, search

Contents

cols (columns function)

cols returns a symbol list of the column names of a table. The table can be passed by reference or by value.

Syntax

L:cols T

Example

q)\l trade.q
q)cols trade
 `time`sym`price`size
q)cols`trade
 `time`sym`price`size

See also


For a complete list of functions, see the kdb+ Function Reference.

Personal tools
Namespaces
Variants
Actions
Navigation
Print/export
Toolbox