Oracle设置序列方法
2024-09-05 03:28:29
create sequence SEQ_LoanApplicantGuarantee
minvalue 1
nomaxvalue
start with 1
increment by 1
nocycle
nocache; CREATE OR REPLACE TRIGGER TRI_LoanApplicantGuarantee
BEFORE INSERT ON LoanApplicantGuarantee FOR EACH ROW WHEN (new.GuaranteeID is null)
begin
select SEQ_LoanApplicantGuarantee.nextval into:new.GuaranteeID from dual;
end;
以上SQL成功创建了序列并用Trigger将其与表绑定在了一起
最新文章
- DHCP中继
- Jquery 判断浏览器类型
- ios ableviewcell的动态加载数据,模仿喜马拉雅动态数据加载
- Call to undefined function curl_init()解决方法
- ListView的Item被点击和其中的Button被点击同时生效
- Lake Counting--poj2386
- asp.net(C#)之NPOI&;quot;操作Excel
- 动态链接库dll,导入库lib,静态链接库lib
- map &; flatMap 浅析
- 基于HTML5及WebGL的工控SCADA模拟飞机飞行
- SAS 9.4 的sid问题解决方案汇总(头疼...)
- javascript 编程风格 部分精要
- Bugku-CTF之备份是个好习惯
- 文本建模、文本分类相关开源项目推荐(Pytorch实现)
- Spring Security(十六):5.7 Multiple HttpSecurity
- Spring Boot 之使用 Json 详解
- rocketmq源码打包步骤
- this小案例
- What's the difference between SDK and Runtime in .NET Core?
- java 数组基础学习(一维二维数组)
热门文章
- linux进程互斥等待
- mysql报错:java.sql.SQLException: The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone.
- Linux 内核 低级 sysfs 操作
- CSS---cursor 鼠标指针光标样式(形状)
- Vue学习笔记-基本语法
- HDU6333 莫队+组合数学
- C++模板特化与偏特化
- NI LabVIEW 编程规范
- TCP/IP||Ping
- 007 Ceph手动部署单节点