原始表数据如下: 需求:现要求按分号“;”将rate_item列进行分割后插入到新的数据表中. CREATE OR REPLACE FUNCTION fun_gp_test_xxx_20181026(v_month int) RETURNS INT AS $BODY$ declare v_num int; v_count int; begin v_num :; v_count :; loop v_num :; ) into v_count from temp_cwh_test_1106 wher…