当前位置:网站首页>ORACLE CREATE SEQUENCE,ALTER SEQUENCE,DROP SEQUENCE
ORACLE CREATE SEQUENCE,ALTER SEQUENCE,DROP SEQUENCE
2022-07-05 07:12:00 【Just as young】
Preface
I saw it in the process of getting familiar with the project today oracle Create a sequence of sql Code , So let's learn how to create a sequence 、 Modification and deletion .
CREATE SEQUENCE
The creation example is as follows :
CREATE SEQUENCE customers_seq
START WITH 1000 -- from 1000 Start
MAXVALUE 9999 -- Maximum
INCREMENT BY 1 -- Number of intervals
CACHE 100 -- Number of caches
NOCYCLE; -- Do not cycle after reaching the maximum
ALTER SEQUENCE
An example of modification is as follows :
ALTER SEQUENCE customers_seq
MAXVALUE 1500; -- The maximum value is modified to 1500
ALTER SEQUENCE customers_seq
CACHE 5; -- The number of caches is modified to 5
DROP SEQUENCE
Examples of deletion are as follows :
DROP SEQUENCE oe.customers_seq; -- Delete sequence
Reference link :Oracle Database Release 21.
边栏推荐
- Concurrent programming - deadlock troubleshooting and handling
- M2DGR 多源多场景 地面机器人SLAM数据集
- 现在有html文件,和用vs制作的mvc(连接了数据库),怎么两个相连?
- Logical structure and physical structure
- [software testing] 03 -- overview of software testing
- Application of MATLAB in Linear Algebra (4): similar matrix and quadratic form
- MySQL setting trigger problem
- Ros2 - workspace (V)
- Ret2xx---- common CTF template proposition in PWN
- Import CV2 prompt importerror: libgl so. 1: Cannot open shared object file: no such file or directory
猜你喜欢
扫盲-以太网MII接口类型大全-MII、RMII、SMII、GMII、RGMII、SGMII、XGMII、XAUI、RXAUI
Three body goal management notes
Log4qt usage of logbase in QT project
. Net core stepping on the pit practice
Ros2 - common command line (IV)
PostMessage communication
[vscode] prohibit the pylance plug-in from automatically adding import
目标检测系列——Faster R-CNN原理详解
Logical structure and physical structure
inux摄像头(mipi接口)简要说明
随机推荐
SD_ CMD_ SEND_ SHIFT_ REGISTER
Skywalking all
【软件测试】03 -- 软件测试概述
第 2 章:小试牛刀,实现一个简单的Bean容器
Powermanagerservice (I) - initialization
2022年中纪实 -- 一个普通人的经历
Ros2 - first acquaintance with ros2 (I)
Solve tensorfow GPU modulenotfounderror: no module named 'tensorflow_ core. estimator‘
Xavier CPU & GPU 高负载功耗测试
数学分析_笔记_第8章:重积分
【Node】npm、yarn、pnpm 区别
【软件测试】06 -- 软件测试的基本流程
Negative number storage and type conversion in programs
Executealways of unity is replacing executeineditmode
[vscode] prohibit the pylance plug-in from automatically adding import
Three body goal management notes
U-boot initialization and workflow analysis
Orin installs CUDA environment
C#学习笔记
Ros2 - workspace (V)