Oracleでのシーケンスの使用

347 ワード

初期値10001、ステップ長1、最大値999999のシーケンスを作成します.
構文:create sequenceシーケンス名
 increment by n     
 start with n       
 maxvalue n 
 minvalue n
 cycle | nocycle     
 cache | nocache               

create sequence newstudno
increment by 1
start with 10001
maxvalue 99999