Oracle 创建自动增长列

create   table   a(a   number);  
  create   sequence   SEQ_a  
  minvalue   1  
  maxvalue   999999999999999999999999999  
  start   with   21  
  increment   by   1  
  cache   20;  
  insert   into   a   values(seq_a.nextval);

你可能感兴趣的:(oracle)