当前位置:网站首页>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;
边栏推荐
- cupp字典生成工具(同类工具还有crunch)
- Apply concentrated load to nodes in batch in ABAQUS
- Using SSH public key to transfer files
- ACL 2022 - strong combination of pre training language model and graphic model
- Start stop script and distribution script of shell
- errno: -4078, code: ‘ECONNREFUSED‘, syscall: ‘connect‘, address: ‘127.0.0.1‘, port: 3306;postman报错
- 小红的删数字
- Ue4\ue5 touch screen touch event: single finger and double finger
- Force deduction solution summary 449 serialization and deserialization binary search tree
- 中国银屑病药物市场评估与投资方向研究报告(2022版)
猜你喜欢

Comment prévenir les incendies électriques dans les centres commerciaux?

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

How to make div 100% page (not screen) height- How to make a div 100% of page (not screen) height?

Unity3d ugui translucent or linear gradient pictures display abnormally (blurred) problem solving (color space mismatch)

cupp字典生成工具(同类工具还有crunch)

微积分复习2

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

Unity3D中DrawCall、Batches、SetPassCall

How should programmers solve the problem of buying vegetables? Take you hand in hand to quickly order and grab vegetables by using the barrier free auxiliary function

如何防止商场电气火灾的发生?
随机推荐
String number with special style
Common errors when mysql8 connects through JDBC
[digital signal processing] correlation function (power signal | cross correlation function of power signal | autocorrelation function of power signal)
1 minute to understand the essential difference between low code and zero code
跨域有哪些解决方法?
Force deduction solution summary 467- unique substring in surrounding string
Intel case
ssh公钥登录失败报错:sign_and_send_pubkey: no mutual signature supported
Audio and video technology under the trend of full true Internet | Q recommendation
Force deduction solution summary 398 random number index
Force deduction solution summary 668- the smallest number k in the multiplication table
Quelles sont les solutions dans tous les domaines?
Computer common sense
The four pain points of enterprise digitalization are solved by low code platform
Layered architecture of DDD
Force deduction solution summary interview question 01.05 Edit once
Cupp dictionary generation tool (similar tools include crunch)
The program actively carries out telephone short message alarm, and customizes telephone, short message and nail alarm notifications
微信小程序项目实例——体质计算器
Apache simple honeypot