惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

NISL@THU
NISL@THU
Security Archives - TechRepublic
Security Archives - TechRepublic
T
Threatpost
Cloudbric
Cloudbric
H
Heimdal Security Blog
P
Privacy International News Feed
www.infosecurity-magazine.com
www.infosecurity-magazine.com
T
Tor Project blog
A
Arctic Wolf
W
WeLiveSecurity
SecWiki News
SecWiki News
S
Security Affairs
Schneier on Security
Schneier on Security
PCI Perspectives
PCI Perspectives
Simon Willison's Weblog
Simon Willison's Weblog
K
Kaspersky official blog
P
Privacy & Cybersecurity Law Blog
AWS News Blog
AWS News Blog
T
The Exploit Database - CXSecurity.com
V2EX - 技术
V2EX - 技术
AI
AI
Google DeepMind News
Google DeepMind News
Stack Overflow Blog
Stack Overflow Blog
博客园 - 司徒正美
有赞技术团队
有赞技术团队
C
Cybersecurity and Infrastructure Security Agency CISA
腾讯CDC
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 聂微东
H
Hacker News: Front Page
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Hugging Face - Blog
Hugging Face - Blog
The Hacker News
The Hacker News
阮一峰的网络日志
阮一峰的网络日志
Microsoft Security Blog
Microsoft Security Blog
WordPress大学
WordPress大学
月光博客
月光博客
博客园 - 【当耐特】
Recorded Future
Recorded Future
O
OpenAI News
Hacker News: Ask HN
Hacker News: Ask HN
Scott Helme
Scott Helme
N
News and Events Feed by Topic
Help Net Security
Help Net Security
GbyAI
GbyAI
Google DeepMind News
Google DeepMind News
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Y
Y Combinator Blog
Martin Fowler
Martin Fowler
小众软件
小众软件

博客园 - CooS

PowerDesigner使用心得 有意思的图片 到底是顺时针还是逆时针旋转呢? - CooS - 博客园 又是两个小错误 Windows服务 System.StackOverflowException 小错误 大杂烩-今天遇到的问题的总结 .NET相关资源 杀毒 请问:javascript 如何新建一个类的对象 如:work w = new work() File.Delete不能删除文件的问题 小试Ajax-下拉框联动 笑话 用google搜索时它会告诉你找到多少页面。这里规定找到页面多的一方胜(zz) 人生的状态是由自己心灵的温度决定的 Oracle函数列表速查(zz) 背上的爱(zz) 程序人生 - 我已经努力了七年(zz) 美女当道,丑女孩会有爱情吗?(zz)
在oracle9i中创建自增序列-触发器(zz)
CooS · 2006-01-17 · via 博客园 - CooS


转自http://gocom.primeton.com/blog/index.php?op=ViewArticle&articleId=54&blogId=9

/*==============================================================*/
/* 设置自增序列: 年度作业计划执行对象表 */
/*==============================================================*/
DROP SEQUENCE SEQ_TBL_Y_PLAN_ACT_OBJ;
CREATE SEQUENCE SEQ_TBL_Y_PLAN_ACT_OBJ INCREMENT BY 1 START WITH 1 MAXVALUE 9999999999 CYCLE NOCACHE;
CREATE OR REPLACE TRIGGER TRG_TBL_Y_PLAN_ACT_OBJ
BEFORE INSERT ON TBL_Y_PLAN_ACT_OBJ
FOR EACH ROW
BEGIN
SELECT SEQ_TBL_Y_PLAN_ACT_OBJ.NEXTVAL INTO :NEW.OBJ_ID FROM DUAL;
END;

这是通用的格式,

TBL_Y_PLAN_ACT_OBJ是要操作的表名,

SEQ_TBL_Y_PLAN_ACT_OBJ是创建的自增函数名;

9999999999 是根据字段的长度而定,本例字段长为10;

OBJ_ID是要表中需要自增的字段名称.