t=table(`A1`A2`A3 as col1,`B1`B2`B3 as col2,`C1`C2`C3 as col3) t[t.size() : 0]
回答于 2022-10-21 21:32
select id, gap, msum(score, 2, 1) as total from t context by id csort score desc
回答于 2022-10-21 21:07
select avg(price), sum(qty) from t1 group by date - (dayOfMonth(date) - 1) % 10 as xun
回答于 2022-01-23 22:23
浮点数都是有精度的。出现 26380.000000000094587这样的数字,整数后面跟一个非常小的小数,是正常的。所以浮点数的比较需要考虑精度。
回答于 2021-10-19 09:18
bBands in TA module is not a state function. Therefore can't directly use in reactive engine. I slightly modify the code and adapt it to a state function as follows: @statedef bBands(close, timePeriod, nbdevUp, nbdevDn){ mid = mavg(close, timePeriod) md = mstdp(close, timePeriod) return (...
回答于 2021-09-10 22:59
DolphinDB中的时间类型内部是用一个整型表示的。因此直接生成相应的整数,然后转化成相应的时间类型最为高效。 a = 17 15 second(a * 3600)
回答于 2021-09-08 00:20