oracle中insert时使用序列

oracle中insert时使用序列   

   创建序列 
   create sequence emp_seq 
   increment by 1 
   start with 1 
   nomaxvalue 
   nocycle 
   cache 10 
   
   引用序列 
   insert into emp 
   values(emp_seq.nextval)
posted @ 2014-04-02 11:26  春夏秋冬春  阅读(3073)  评论(0)    收藏  举报