【发布时间】:2021-02-11 16:53:08
【问题描述】:
我有下表,我正在尝试更新表的嵌套列表的空模式并在 t1 中使用结果填充它们
t:flip (`userName`nestedList)!(("user1";"user2";"user3";"user4");(flip (`col1`col2`col3`col4`col5`col6`col7)!(`symbol$();();();();();();());flip (`col1`col2`col3`col4`col5`col6`col7)!(enlist `XXX_XXX;enlist 0b;enlist 2000j;enlist -1j;enlist 1b;enlist 0b;enlist 0b);flip (`col1`col2`col3`col4`col5`col6`col7)!(`symbol$();();();();();();());flip (`col1`col2`col3`col4`col5`col6`col7)!(enlist `XXX_XXX;enlist 0b;enlist 2000j;enlist -1j;enlist 1b;enlist 0b;enlist 0b)))
期望的结果是 t1
t1:flip (`userName`nestedList)!(("user1";"user2";"user3";"user4");(flip (`col1`col2`col3`col4`col5`col6`col7)!(enlist `;enlist 0b;enlist 0;enlist 0;enlist 0b;enlist 0b;enlist 0b);flip (`col1`col2`col3`col4`col5`col6`col7)!(enlist `XXX_XXX;enlist 0b;enlist 2000j;enlist -1j;enlist 1b;enlist 0b;enlist 0b);flip (`col1`col2`col3`col4`col5`col6`col7)!(enlist `;enlist 0b;enlist 0;enlist 0;enlist 0b;enlist 0b;enlist 0b);flip (`col1`col2`col3`col4`col5`col6`col7)!(enlist `XXX_XXX;enlist 0b;enlist 2000j;enlist -1j;enlist 1b;enlist 0b;enlist 0b)))
//试图更新 t,所以下面运行的计数是 4 而不是 2
raze exec nestedList from t //count=2
raze exec nestedList from t1 //count=4
感谢您的帮助!
【问题讨论】:
标签: kdb