Store column as string in kdb
2 answers
If all your entries are single digits, all you have to do is
.Q.n t.B
Taking your data as an example,
q)show t:([] A:1 4 7;B:2 5 8;C:3 6 9)
A B C
-----
1 2 3
4 5 6
7 8 9
q).Q.n t.B
"258"
Note that .Q.n
this is just a string containing 10 digits:
q).Q.n
"0123456789"
If you want to store a row in a table, just use update
:
q)update .Q.n B from `t
`t
q)t.B
"258"
+2
source to share