顺序:
CREATE SEQUENCE STG.TEMP_PPC_SEQ AS BIGINT
START WITH 1
INCREMENT BY 1
NO MINVALUE
MAXVALUE 2147483647
NO CYCLE;
选择查询:
SELECT TPLCST.code,NEXT VALUE FOR STAGING.STG.TEMP_PPC_SEQ
FROM TEMP_PRODUCT_LIFE_CYCLE_STATUS_TYPE TPLCST
结果:
CODE NEXTVAL
30 8
80 10008
40 30008
50 40015
10 40016
20 20008
我得到下一个随机数。我怎样才能使它们连续?