当前位置:网站首页>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.
边栏推荐
- IPage can display data normally, but total is always equal to 0
- Ros2 - first acquaintance with ros2 (I)
- [solved] there is something wrong with the image
- 基于Cortex-M3、M4的GPIO口位带操作宏定义(可总线输入输出,可用于STM32、ADuCM4050等)
- 并发编程 — 死锁排查及处理
- Concurrent programming - deadlock troubleshooting and handling
- ROS2——topic话题(八)
- docker安装mysql并使用navicat连接
- ROS2——node节点(七)
- Energy conservation and creating energy gap
猜你喜欢
ROS2——ROS2对比ROS1(二)
window navicat连接阿里云服务器mysql步骤及常见问题
Ret2xx---- common CTF template proposition in PWN
[MySQL 8.0 does not support capitalization of table names - corresponding scheme]
The problem of configuring opencv in qt5.13.2 is solved in detail
M2DGR 多源多场景 地面机器人SLAM数据集
[software testing] 04 -- software testing and software development
【无标题】
Orin 两种刷机方式
SD_CMD_SEND_SHIFT_REGISTER
随机推荐
第 2 章:小试牛刀,实现一个简单的Bean容器
.net core踩坑实践
postmessage通信
Ros2 - first acquaintance with ros2 (I)
Marvell 88E1515 PHY loopback模式测试
Spinningup drawing curve
小米笔试真题一
2022.06.27_每日一题
Technology blog learning website
Netease to B, soft outside, hard in
ROS2——工作空间(五)
[node] NVM version management tool
npm install -g/--save/--save-dev的区别
Sre core system understanding
Skywalking all
PHY驱动调试之 --- PHY控制器驱动(二)
Application of MATLAB in Linear Algebra (4): similar matrix and quadratic form
The differences and connections among cookies, sessions, JWT, and tokens
Solve tensorfow GPU modulenotfounderror: no module named 'tensorflow_ core. estimator‘
SD_CMD_RECEIVE_SHIFT_REGISTER