设为首页 加入收藏

TOP

Oracle的一个简单存储过程
2014-11-24 02:42:25 来源: 作者: 【 】 浏览:0
Tags:Oracle 一个 简单 存储 过程

create or replace procedure clearTypes is

c_id integer;

tps varchar(100);

cursor c_1 is

select id, assettypes from folder where assettypes is not null;

begin

open c_1;

loop

fetch c_1 into c_id, tps;

delete from cont2flder_1026_2 where folderid = c_id and instr(tps, assettype)=0;

dbms_output.put_line(c_id);

commit;

exit when c_1%notfound;

end loop;

close c_1;

end clearTypes;

摘自 厚脸皮的tomsu的博客

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇一个小项目的oracle巡检 下一篇监控Oracle数据库的常用shell脚本

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: