KDB+ 2.3 2006.10.09 Copyright (C) 1993-2006 KX
KDB+ 2.3 2006.10.09 Copyright (C) 1993-2006 KX
q [f] [-p p] [-s s] [-t t] [-T T] [-o o] [-u|U u] [-w w] [-r r] [-l]
\a tables
\b views
\c [23 79] console height,width
\d [d] directory
\e 0|1 error trap clients
\f [d] functions
\l [f] load file (or dir:files splays parts scripts)
\o [0N] offset from gmt
\p [i] port (0 turns off)
\s [0] slaves
\t [t] timer set (or time expression) (1st fire after delay)
\u reload user-password file
\v [d] variables
\w workspace(in-use/allocated/max/mapped; max=0 => unlimited, set by -w)
\z [0] "D"$ uses mm/dd/yyyy or dd/mm/yyyy
\B invalid dependencies
\C [36 2000] browser height,width
\P [7] print digits(0-all)
\S [-314159] seed
\T [0] timeout
\W [2] week offset(sat..fri)
\cd.. o/s commands
\\ exit
The int, float, char and symbol literal nulls are: 0N 0n " " `.
The rest use type extensions, e.g. 0Nd. No null for boolean or byte.
0Wd 0Wz 0Wt – placeholder infinite dates/times/datetimes (no math)
dependency::expression
Adverb
' eachboth each
/ [x]over over(:+*&|,) [x]do/while
\ [x]scan scan(:+*&|,) [x]do\while
': [x]prior prior(:-%)
/: eachright sv(i:i/:I s:`/:S C:c/:L) j:0x40/:X i:0x0/:X
\: eachleft vs(I:i\:i S:`\:s L:c\:C) X:0x40\:j X:0x0\:i
parse: ([f|{}];x;,`s)
t insert x
?[t;c;b;a] /select,exec
![t;c;b;a] /update,delete
parallel: dir/{date|month|year|int}/{table}/{fields}
updates can happen in background then send reset"\\l ."
types
20+ userenums 105 composition
98 table 106 f'
99 dict 107 f/
100 lambda 108 f\
101 unary prim 109 f':
102 binary prim 110 f/:
103 ternary(operator) 111 f\:
104 projection 112 dynamic load