赞
踩
–缓存性别表,表名sex,字段名sex,有2行
cache table sex_table as
select stack(2,‘M’,‘F’) as sex;
–缓存缴费期表,表名ppp_table,字段名ppp,有4行
cache table ppp_table as
select stack(4,10,15,20,30) as ppp;
–生成一个1~200的顺序表。因为接下来的连续的投保年龄,和连续的保单年度,都不会超过200,所以200已经够用。
cache table seq_table as
select explode( sequence(1,200)) id ;
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。