要创建 TimeSeries 类型的列,首先必须创建行子类型以表示时间系列的每个元素中保存的数据。
规则和不规则时间系列的子类型都使用相同方式创建。
create row type stock_bar( timestamp datetime year to fraction(5), high real, low real, final real, vol real );
create row type stock_trade( timestamp datetime year to fraction(5), price double precision, vol double precision, trade int, broker int, buyer int, seller int );