标签:from sequence 执行 currval nextval pre where name select
1.
查询名字
select * from sysibm.sysequences where seqname=‘wx_Id‘
2.nextVal
select wx_seq_id.currval from sysibm.sysdummy1
select wx_seq_id.prevval from sysibm.sysdummy1
select wx_seq_id.nextval from sysibm.sysdummy1
3.
select nextval for wx_seq_id from sysibm.sysdummy1
查prev和curr时必须先执行nextval不然报错
标签:from sequence 执行 currval nextval pre where name select
原文地址:http://www.cnblogs.com/yelongsan/p/6601147.html