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

推荐订阅源

Engineering at Meta
Engineering at Meta
人人都是产品经理
人人都是产品经理
aimingoo的专栏
aimingoo的专栏
M
MIT News - Artificial intelligence
Recent Announcements
Recent Announcements
V
Visual Studio Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
MyScale Blog
MyScale Blog
Hugging Face - Blog
Hugging Face - Blog
宝玉的分享
宝玉的分享
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园 - 叶小钗
博客园 - 聂微东
U
Unit 42
F
Fortinet All Blogs
Microsoft Security Blog
Microsoft Security Blog
GbyAI
GbyAI
IT之家
IT之家
The GitHub Blog
The GitHub Blog
Stack Overflow Blog
Stack Overflow Blog
MongoDB | Blog
MongoDB | Blog
Y
Y Combinator Blog
A
About on SuperTechFans
博客园 - 三生石上(FineUI控件)

博客园 - 老狐狸

关于Update语句在不同数据库中的差别 出错存储过程 F_GETTABLELID 正则表达式求值 - 老狐狸 - 博客园 创建层次查询 ultrawebgrid - 老狐狸 - 博客园 javascript - 老狐狸 - 博客园 case when用法和and 后加条件 exp/imp导出导入工具的使用 ASP.NET1.1中Grid自定义眉头 asp.net1.0 TreeView asp.net2.0 TreeView 创建记录、数组 关闭远程数据库连接 创建游标 创建隐式游标 创建临时表 更新表(多表相关联)
创建新的序列
老狐狸 · 2006-06-16 · via 博客园 - 老狐狸

select NVL(count(Sequence_Name), 0)
    
into nCount
    
from all_sequences
   
where Sequence_Owner = 'LSP'
     
and Sequence_Name = 'SEQ_SHELFID';
  
if nCount > 0 then
    sSQL :
= 'drop sequence LSP.SEQ_SHELFID';
    
execute immediate sSQL;
  
end if;
  sSQL :
= 'create sequence SEQ_SHELFID minvalue 1 ' ||
          
' maxvalue 999999999999 start with ' ||
          GetNextID(
'LPMS.PBI_Shelf''ShelfID'|| ' increment by 1';
  
execute immediate sSQL;