SEQ NEXTVAL CURRVAL
SEQ NEXTVAL CURRVAL
SQL中取序列号的用法:
SELECT SEQ_MENU_MENUID.NEXTVAL FROM dual SELECT SEQ_MENU_MENUID.CURRVAL FROM dual insert into menu(menuid) values(SEQ_MENU_MENUID.NEXTVAL)
注意:在使用序列的时候,有时需要有用户名,就像这样:
insert into system.CONSERVATOR(CONSERVATORNAME,CONPASS,CONTRUENAME,CONSEX,CONID)values('JG','123456','000',0, system.CONID.nextval);