wale
wale

性别: 注册于 2021-05-07

向TA求助
20金币数
1890 经验值
1个粉丝
主页被访问 2421 次

163 个回答

0 赞同

time怎么转成整数

请参考下例: ``` t=table(11:00:00 11:30:00 as tm) select hour(tm)*100+minuteOfHour(tm) from t ```

回答于 2021-06-12 17:24

0 赞同

Please use '==' rather than '=' as equal operator in non-sql...

这个被解析为表达式,请用 ["col"] 试一下: ``` aa_copy["tick_pnl"] = aa_copy["tick_return"] ```

回答于 2021-06-12 17:12

0 赞同

The number of rows to update doesn't match the length of new...

把时间值改成2021.04.26T07:00:00

回答于 2021-06-12 16:33

0 赞同

对一个table的特定行列进行赋值用什么函数呢

示例代码如下:

回答于 2021-06-11 16:37

0 赞同

共享内存表支持事务吗

插入数据包保证原子性的,每次插入的数据,要么全部可见,要么全部不可见。

回答于 2021-06-11 16:36

0 赞同

a,b两个表只有记录条数不一样,现在想要a表的记录替换b表已存在...

假设a、b两表的主键是key1和key2,示例如下:

回答于 2021-06-11 16:34

0 赞同

Usage:in(X,Y).Y must be a vector,a set,a dictionary , or a k...

第2个select 改成exec,这里exec语句返回vector ``` select * from a where a.id in (exec id from b) ```

回答于 2021-06-11 16:28

0 赞同

想判断某个共享内存表是否存在怎么查呢?

defined(st,SHARED)   或者 objs(true)

回答于 2021-06-11 16:27

1 赞同

根据每组数据最后一条记录排名,选出排名第1的该组的所有记录

先用context by与limit一起使用获取表中每个分组前n条记录或最后n条记录。 ``` select * from t context by bb  limit -1 ``` 然后用atImax找出排名最大值所在的位置,然后返回bb中该位置对应的值 ``` exec atImax(aa,bb) from (select * from t context by bb  limit -1) ``` 示例代码如下: ``` t=table(5 2 1...

回答于 2021-06-09 08:48

0 赞同

csv加载时某几列不需要,用什么办法比较高效

使用rowNo函数为各列生成列号,赋值给schema表中的col列,然后修改schema表,仅保留表示需要导入的字段的行。代码如下: ``` schema1=extractTextSchema(csv) update schema1 set col = rowNo(name) delete from schema1 where name in `c`d`e ```

回答于 2021-05-26 15:43