Chinaunix
标题:
如何在oracle中创建和使用序例?
[打印本页]
作者:
李哲焕
时间:
2005-11-16 15:51
标题:
如何在oracle中创建和使用序例?
如何在oracle中创建和使用序例。
请熟悉这方面技术的朋友,给出一个完整的实例。
在此谢过。
作者:
chenlihuiabc
时间:
2005-11-16 16:03
create sequence add_one
increment by 1
start with 1
maxvalue 100000000
minvalue 1
cycle;
创建从1开始到100000000的循环序列。
create sequence add_two
increment by 2
start with 1
nomaxvalue
nocycle;
创建从1开始增量为2的无最大值无循环序列。
select add_one.nextval from dual;
查看add_one的下一个值。
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2