我如何 select 使用列表列

How can I select with column of lists

假设我有一个 table 和一列列表

q)t:([]x:10?1.;y:10?`a`b`c;z:10#enlist`a`b)
q)t
x          y z  
----------------
0.1627662  b a b
0.6884756  b a b
0.8177547  a a b
0.7520102  b a b
0.1086824  c a b
0.9598964  c a b
0.03668341 a a b
0.6430982  a a b
0.6708738  b a b
0.6789082  a a b

如何 select 行 where y in z

select 从 t where y in'z

由于 z 是列表的列表,因此您需要一个 each。 ' 充当两者兼而有之的角色。 http://code.kx.com/q4m3/6_Functions/#672-each-both 了解更多详情。当心空格。 https://groups.google.com/forum/#!forum/personal-kdbplus 获取更多知识性建议。