当前位置:网站首页>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;
边栏推荐
- Application of ard3m motor protector in coal industry
- One article to show you how to understand the harmonyos application on the shelves
- WPS table learning notes - highlight duplicate values
- 微信小程序项目实例——双人五子棋
- Demand and business model innovation - demand 9- prototype
- Force deduction solution summary 1022- sum of binary numbers from root to leaf
- 中国银屑病药物市场评估与投资方向研究报告(2022版)
- Penetration test - file upload
- Demand and business model innovation - demand 11 - overview of demand analysis
- 2022 Fujian Provincial Safety Officer C certificate (full-time safety officer) examination simulation 100 questions and answers
猜你喜欢

Unity3D中DrawCall、Batches、SetPassCall

Hypergraph tilted data is merged into root node and transferred to 3dfiles

errno: -4091, syscall: ‘listen‘, address: ‘::‘, port: 8000

Cvpr2022 | IFS RCNN: an incremental small sample instance splitter

errno: -4091, syscall: ‘listen‘, address: ‘::‘, port: 8000

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

errno: -4078, code: ‘ECONNREFUSED‘, syscall: ‘connect‘, address: ‘127.0.0.1‘, port: 3306;postman报错

如何防止商場電氣火灾的發生?

微信小程序项目实例——我有一支画笔(画画)

Demand and business model innovation - demand 8- interview
随机推荐
Application of acrelcloud-6000 secure power cloud platform in a commercial plaza
Xiaopi can't start the MySQL database. Please find out!
Proxy and reflection (II)
Force deduction solution summary - Sword finger offer II 114 Alien dictionary
Comment prévenir les incendies électriques dans les centres commerciaux?
Demand and business model innovation - demand 11 - overview of demand analysis
Abaqus中批量对节点施加集中力荷载
Transformation of geographical coordinates of wechat official account development
(9) Serial port interrupt
Apache simple honeypot
推荐6款办公软件,好用还免费,效率翻倍
Audio and video technology under the trend of full true Internet | Q recommendation
MySQL partition table create delete modify view
Force deduction solution summary 462- minimum number of moves to make array elements equal II
Force deduction solution summary 388- longest absolute path of file
What is the commonly heard sub table of MySQL? Why does MySQL need tables?
oracle之序列
ACL 2022 - strong combination of pre training language model and graphic model
Depth copy
How to prevent electrical fire in shopping malls?