insert into  table
select sequser.table_seq.nextval ,2394967,0,1,0,0,sysdate,0,0
from dualsequser.table_seq.nextval  是什么,怎么理解?如何使用?

解决方案 »

  1.   

    sequser.table_seq.nextval
    数据库用户名.序列名.nextval
      

  2.   


    create sequenct seq_incre
    start with 1
    increment by 1
    minvalue 1
    maxvalue 100
    nocycle
    /
    1.伪列:nextval[下一个值],currval[当前值]
    select seq_incre.nextval from dual;--首次引用nextval
      

  3.   

    sequser.table_seq.nextval sequser这个用户下的 table_seq 这个序列的  nextval 下一个值
      

  4.   

    谢谢各位大侠,散分结贴
    自己搜到了一个基础教程,初学者看看很好,很明白。
    http://database.51cto.com/art/200810/93620.htm