2014.02.18 01:07 AM
tmem:([dt:`date$ 2014.02.13 2014.02.14];bid:`float$1.283 1.387)meta tmemc | t f a---| -----dt | dbid| f
tmem:([]dt:`date$ 2014.02.13 2014.03.13;bid:`float$1.283 1.387).Q.pq tmem
0b
`:c:/q/splay/tsplay/ set tmem
\l c:/q/splay
.Q.qp tsplay
0b
2014.02.18 01:30 AM
Hi,--I have a couple of questions which I hope someone might be able to help me with1) Is there a way to identify the names of columns that are keyed in a table?tmem:([dt:`date$ 2014.02.13 2014.02.14];bid:`float$1.283 1.387)meta tmemc | t f a---| -----dt | dbid| fI can see in this example the data type but no definition that dt is keyed.2) Is there a way to identify a table that is splayed? I can use .Q.qp to identify a partitioned table but I don't anyway to identify a splayed and non splayed tablestmem:([]dt:`date$ 2014.02.13 2014.03.13;bid:`float$1.283 1.387).Q.pq tmem0b`:c:/q/splay/tsplay/ set tmem\l c:/q/splay.Q.qp tsplay0bThis information is useful for some python classes I am writing to automatically insert data into a normal, splayed or partitioned tables.Many thanksDavid
You received this message because you are subscribed to the Google Groups "Kdb+ Personal Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to personal-kdbplus+unsubscribe@googlegroups.com.
To post to this group, send email to personal-kdbplus@googlegroups.com.
Visit this group at http://groups.google.com/group/personal-kdbplus.
For more options, visit https://groups.google.com/groups/opt_out.
2014.02.18 01:33 AM
keys <table name>
Should give you the list of primary key col names
2014.02.18 01:37 AM
2014.02.18 01:31 AM
cols (key tmem)
`dt
cols (value tmem)
`bid
2014.02.18 01:34 AM
EMEA
Tel: +44 (0)28 3025 2242
AMERICAS
Tel: +1 (212) 447 6700
APAC
Tel: +61 (0)2 9236 5700
KX. All Rights Reserved.
KX and kdb+ are registered trademarks of KX Systems, Inc., a subsidiary of FD Technologies plc.