当前位置:网站首页>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 - common command line (IV)
- M2dgr slam data set of multi-source and multi scene ground robot
- [vscode] prohibit the pylance plug-in from automatically adding import
- SOC_ SD_ CMD_ FSM
- [software testing] 02 -- software defect management
- ImportError: No module named ‘Tkinter‘
- Concurrent programming - how to interrupt / stop a running thread?
- SD_CMD_RECEIVE_SHIFT_REGISTER
- Use the Paping tool to detect TCP port connectivity
- 2022.06.27_ One question per day
猜你喜欢
Ros2 - workspace (V)
网易To B,柔外刚中
Orin 安装CUDA环境
你心目中的数据分析 Top 1 选 Pandas 还是选 SQL?
U-boot initialization and workflow analysis
扫盲-以太网MII接口类型大全-MII、RMII、SMII、GMII、RGMII、SGMII、XGMII、XAUI、RXAUI
Ethtool principle introduction and troubleshooting ideas for network card packet loss (with ethtool source code download)
Orin 两种刷机方式
iNFTnews | 喝茶送虚拟股票?浅析奈雪的茶“发币”
Mathematical analysis_ Notes_ Chapter 8: multiple integral
随机推荐
U-boot initialization and workflow analysis
The difference between NPM install -g/-save/-save-dev
【Node】nvm 版本管理工具
并发编程 — 如何中断/停止一个运行中的线程?
C learning notes
[tf] Unknown: Failed to get convolution algorithm. This is probably because cuDNN failed to initial
Anaconda navigator click open no response, can not start error prompt attributeerror: 'STR' object has no attribute 'get‘
ROS2——安装ROS2(三)
扫盲-以太网MII接口类型大全-MII、RMII、SMII、GMII、RGMII、SGMII、XGMII、XAUI、RXAUI
Orin 两种刷机方式
Ret2xx---- common CTF template proposition in PWN
*P++, (*p) + +, * (p++) differences
Steps and FAQs of connecting windows Navicat to Alibaba cloud server MySQL
Initialization of global and static variables
并发编程 — 死锁排查及处理
npm install -g/--save/--save-dev的区别
Raspberry pie 4B arm platform aarch64 PIP installation pytorch
Unity UGUI不同的UI面板或者UI之间如何进行坐标匹配和变换
Mipi interface, DVP interface and CSI interface of camera
Log4qt usage of logbase in QT project