Hi,
i have another problem, if i have:
t1:([col1:(1 2);col2:(1 2 )]col3:(10 20))
t2:(col4:(1 2);col5:(1 2);col6:`t1$())
if i try:
update col6: t1$(col4 col5) from
t2
i will have length error: Why??
Hi,
i have another problem, if i have:
t1:([col1:(1 2);col2:(1 2 )]col3:(10 20))
t2:(col4:(1 2);col5:(1 2);col6:`t1$())
if i try:
update col6: t1$(col4 col5) from
t2
i will have length error: Why??
<o:p> </o:p>
>>> t2:(col4:(1 2);col5:(1 2);col6:`t1$())<o:p></o:p>
<o:p> </o:p>
You try to define a table with 2 rows but the length of this list is zero `t1$()<o:p></o:p>
count `t1$()<o:p></o:p>
<o:p> </o:p>
Try this:<o:p></o:p>
<o:p> </o:p>
t1:([col1:(1 2);col2:(1 2 )]col3:(10 20))<o:p></o:p>
t2:(col4:(1 2);col5:(1 2);col6:2#`t1$())<o:p></o:p>
<o:p> </o:p>
<o:p> </o:p>
HTH,<o:p></o:p>
Kim<o:p></o:p>
<o:p> </o:p>
<o:p> </o:p>
Von: personal-kdbplus@googlegroups.com [mailto:personal-kdbplus@googlegroups.com] Im Auftrag von Gregorio Occhiogrosso
Gesendet: Mittwoch, 19. Dezember 2012 11:46
An: personal-kdbplus@googlegroups.com
Betreff: [personal kdb+] update FK<o:p></o:p>
<o:p> </o:p>
Hi, <o:p></o:p>
i have another problem, if i have:<o:p></o:p>
<o:p> </o:p>
t1:([col1:(1 2);col2:(1 2 )]col3:(10 20))<o:p></o:p>
t2:(col4:(1 2);col5:(1 2);col6:`t1$())<o:p></o:p>
<o:p> </o:p>
if i try:<o:p></o:p>
<o:p> </o:p>
update col6: t1$(col4 col5) from
t2<o:p></o:p>
<o:p> </o:p>
i will have length error: Why??<o:p></o:p>
–
Submitted via Google Groups
it not work :-(
Il giorno mercoledì 19 dicembre 2012 12:11:43 UTC+1, kuentang ha scritto:
>>> t2:(col4:(1 2);col5:(1 2);col6:`t1$())
You try to define a table with 2 rows but the length of this list is zero `t1$()
count `t1$()
Try this:
t1:([col1:(1 2);col2:(1 2 )]col3:(10 20))
t2:(col4:(1 2);col5:(1 2);col6:2#`t1$())
HTH,
Kim
Von: personal…@googlegroups.com [mailto:personal…@googlegroups.com] Im Auftrag von Gregorio Occhiogrosso
Gesendet: Mittwoch, 19. Dezember 2012 11:46
An: personal…@googlegroups.com
Betreff: [personal kdb+] update FK
Hi,
i have another problem, if i have:
t1:([col1:(1 2);col2:(1 2 )]col3:(10 20))
t2:(col4:(1 2);col5:(1 2);col6:`t1$())
if i try:
update col6:
t1$(col4 col5) from
t2
i will have length error: Why??
–
Submitted via Google Groups
t1:([col1:(1 2);col2:(1 2 )]col3:(10 20))
t2:(col4:(1 2);col5:(1 2);col6:2#`t1$()) / from Kim
update col6: t1$flip(col4;col5) from
t2
this work fine
tnx
Il giorno mercoledì 19 dicembre 2012 14:06:07 UTC+1, Charles Skelton ha scritto:
t1:([col1:(1 2);col2:(1 2 )]col3:(10 20))
t2:(col4:(1 2);col5:(1 2);col6:2#`t1$()) / from Kim
update col6:
t1$flip(col4;col5) from
t2