当前位置:网站首页>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.
边栏推荐
- Ros2 - ros2 vs. ros1 (II)
- Concurrent programming - deadlock troubleshooting and handling
- new和malloc的区别
- Ros2 - Service Service (IX)
- Mipi interface, DVP interface and CSI interface of camera
- 【软件测试】02 -- 软件缺陷管理
- [software testing] 03 -- overview of software testing
- Ros2 - common command line (IV)
- Orin two brushing methods
- 扫盲-以太网MII接口类型大全-MII、RMII、SMII、GMII、RGMII、SGMII、XGMII、XAUI、RXAUI
猜你喜欢
[software testing] 03 -- overview of software testing
docker安装mysql并使用navicat连接
Ros2 - install ros2 (III)
Intelligent target detection 59 -- detailed explanation of pytoch focal loss and its implementation in yolov4
Build a microservice cluster environment locally and learn to deploy automatically
M2dgr slam data set of multi-source and multi scene ground robot
M2DGR 多源多场景 地面机器人SLAM数据集
并发编程 — 死锁排查及处理
Ros2 - configuration development environment (V)
【软件测试】02 -- 软件缺陷管理
随机推荐
Import CV2, prompt importerror: libcblas so. 3: cannot open shared object file: No such file or directory
2022.06.27_ One question per day
SRE核心体系了解
[tf1] save and load parameters
Do you choose pandas or SQL for the top 1 of data analysis in your mind?
Import CV2 prompt importerror: libgl so. 1: Cannot open shared object file: no such file or directory
Mathematical analysis_ Notes_ Chapter 8: multiple integral
Interpretation of the earliest sketches - image translation work sketchygan
[vscode] search using regular expressions
ROS2——topic话题(八)
SD_CMD_RECEIVE_SHIFT_REGISTER
Marvell 88e1515 PHY loopback mode test
testing framework
C#学习笔记
IPage能正常显示数据,但是total一直等于0
Steps and FAQs of connecting windows Navicat to Alibaba cloud server MySQL
Ros2 - Service Service (IX)
Orin 两种刷机方式
Ret2xx---- common CTF template proposition in PWN
Inftnews | drink tea and send virtual stocks? Analysis of Naixue's tea "coin issuance"