当前位置:网站首页>Oracle sequence
Oracle sequence
2022-06-12 02:49:00 【zhu0902150102】
CREATE SEQUENCE SEQUENCE_NAME/* The sequence of */
INCREMENT BY step ( The step size is positive , Decrease when negative , Default 1)
START WITH A( Initial value )
MAXVALUE B( Maximum )
MINVALUE C( minimum value )
CYCLE/NOCYCLE( Whether to circulate )
CACHE D/NOCACHE;( Whether to allocate cache )
use sequence_name.nextval Get the next sequence value ;
use sequence_name.currval Get the current sequence value
give an example
Give a by sequence stud Tabular sno assignment
create table stud(sno number,age number);
create sequence stud_seq
start with 1
maxvalue 9
minvalue 1
nocycle
nocache;
create or replace procedure stud_add
is
age number default 10;
begin
for id in 1..9 loop
insert into stud values(stud_seq.nextval,age);
end loop;
end;
边栏推荐
- PHP life cycle and swoole life cycle
- Unity3d ugui translucent or linear gradient pictures display abnormally (blurred) problem solving (color space mismatch)
- [no title] 2022 coal mine safety inspection test questions and online simulation test
- Layered architecture of DDD
- Acl2022 | DCSR: a sentence aware contrastive learning method for open domain paragraph retrieval
- Force deduction programming problem - solution summary
- Force deduction solution summary 699- dropped blocks
- Transformation of geographical coordinates of wechat official account development
- Audio and video technology under the trend of full true Internet | Q recommendation
- 推荐6款办公软件,好用还免费,效率翻倍
猜你喜欢
![[high code file format API] downing provides you with the file format API set Aspose, which can create, convert and operate more than 100 file formats in just a few lines of code](/img/df/f4d311308e9e76c5ae9fdc11c926b8.jpg)
[high code file format API] downing provides you with the file format API set Aspose, which can create, convert and operate more than 100 file formats in just a few lines of code

Drawcall, batches, setpasscall in unity3d

Abaqus中批量对节点施加集中力荷载

如何防止商场电气火灾的发生?

微积分复习2

Graduation design of fire hydrant monitoring system --- thesis (add the most comprehensive hardware circuit design - > driver design - > Alibaba cloud Internet of things construction - > Android App D

Bochuang smart sprint technology innovation board: annual revenue of RMB 1.1 billion, book value of accounts receivable of RMB 300million

推荐6款办公软件,好用还免费,效率翻倍

Demand and business model innovation - demand 9- prototype

AcrelCloud-6000安全用电云平台在某商业广场的应用
随机推荐
$. map(data,function(item,index){return XXX})
Application of acrelcloud-6000 secure power cloud platform in a commercial plaza
余压监控系统在高层民用建筑的应用
Start stop script and distribution script of shell
How to make div 100% page (not screen) height- How to make a div 100% of page (not screen) height?
Common errors when mysql8 connects through JDBC
ZABBIX notes: 6.0 lts source code installation
Cupp dictionary generation tool (similar tools include crunch)
[digital signal processing] correlation function (finite signal | autocorrelation function of finite signal)
The unique path of leetcode topic resolution II
[high code file format API] downing provides you with the file format API set Aspose, which can create, convert and operate more than 100 file formats in just a few lines of code
Navicat for MySQL 11 Linux cracking method
Comment prévenir les incendies électriques dans les centres commerciaux?
Requirements and business model innovation - Requirements 12 - process oriented modeling
Getting started with RPC
oracle之序列
Force deduction solution summary 398 random number index
I2C protocol overview
maya前臺渲染插件mel脚本工具
2022 Fujian Provincial Safety Officer C certificate (full-time safety officer) examination simulation 100 questions and answers