InsSet 函数将给定集的每个元素都插入时间系列。
InsSet(ts TimeSeries, multiset_rows multiset, flags integer default 0) returns TimeSeries;
提供的行类型值必须将时间戳记作为其第一个属性。此时间戳记用于确定在时间系列中执行插入的位置。例如,要插入到存储单个双精度值的时间系列,传递给 InsSet 的行类型值必须包含时间戳记和双精度值。
如果给定时间点已存在元素,那么整个插入无效并将出现错误。
不能在时间戳记上插入已隐藏的元素。
已插入多集的时间系列。
update activity_stocks set activity_data = (select InsSet(activity_data, set_data) from activity_load_tab where stock_id = 600) where stock_id = 600;