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

推荐订阅源

S
Security @ Cisco Blogs
H
Hacker News: Front Page
P
Privacy International News Feed
N
News and Events Feed by Topic
T
Threatpost
Simon Willison's Weblog
Simon Willison's Weblog
S
Schneier on Security
K
Kaspersky official blog
S
Secure Thoughts
V2EX - 技术
V2EX - 技术
Security Latest
Security Latest
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
www.infosecurity-magazine.com
www.infosecurity-magazine.com
C
CERT Recently Published Vulnerability Notes
L
Lohrmann on Cybersecurity
Jina AI
Jina AI
P
Proofpoint News Feed
AI
AI
雷峰网
雷峰网
T
Tailwind CSS Blog
Engineering at Meta
Engineering at Meta
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Recent Commits to openclaw:main
Recent Commits to openclaw:main
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
博客园 - 叶小钗
Webroot Blog
Webroot Blog
Apple Machine Learning Research
Apple Machine Learning Research
SecWiki News
SecWiki News
罗磊的独立博客
N
Netflix TechBlog - Medium
Martin Fowler
Martin Fowler
Google DeepMind News
Google DeepMind News
Cyberwarzone
Cyberwarzone
MongoDB | Blog
MongoDB | Blog
博客园 - Franky
Schneier on Security
Schneier on Security
The GitHub Blog
The GitHub Blog
S
Security Affairs
Blog — PlanetScale
Blog — PlanetScale
Last Week in AI
Last Week in AI
P
Proofpoint News Feed
月光博客
月光博客
D
Docker
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
S
Securelist
W
WeLiveSecurity
T
Troy Hunt's Blog
A
Arctic Wolf
博客园 - 司徒正美

博客园 - 左少白

oracle 找回DROP掉的表 求解,工作流点通过时,弹出窗口让用户录入审核意见 c# 多态 sqlserver 按五分钟分组 c# 继承 查询行转列 SqlParameter序列化的问题 oracle oracle trunc (date,dd )函数 oracle 游标 对象集合转换为datatable 用C# 正则 提取HTML标签中的值? oracle decode 与 case when ,空的处理 oracle select for update sql1 同期进度,完成率 Oracle Index 相關知識 玩转DevExpress.XtraGrid.view.gridview oracle索引 在Oracle中进行大小写不敏感的查询2
oracle 游标
左少白 · 2012-12-17 · via 博客园 - 左少白

declare
TYPE t_cursor IS REF CURSOR;
c_custids t_cursor;
v_Date Date;
v_branchid varchar2(3);
BEGIN
open c_custids for select * From (/*select distinct billingdate,branchid from tb_gos_sale_salestockoutsum where billingdate >to_date('2012-01-01','yyyy-mm-dd')
union */
select distinct billingdate,branchid from tb_gos_sale_salestockinsum where billingdate >to_date('2012-01-01','yyyy-mm-dd')
/* union
select distinct billingdate,branchid from TB_GOS_SALE_SALEPREMIUMsum where billingdate >to_date('2012-01-01','yyyy-mm-dd')*/
) a order by billingdate desc;
loop
fetch c_custids into v_Date,v_branchid;
exit when c_custids%notfound;
dbms_output.put_line(v_Date);
pkg_importdata_day.GetHaveBusiCustDay(to_char(v_Date,'yyyy-mm-dd'),v_branchid);
pkg_importdata_day.GetHaveBusiProdDay(to_char(v_Date,'yyyy-mm-dd'),v_branchid);

end loop;
close c_custids;
END;

procedure GetAllCustlongDays(p_branchid in varchar2) is
TYPE t_cursor IS REF CURSOR;
c_custids t_cursor;
v_custid varchar2(20);
BEGIN
open c_custids for select custid from vw_common_cust where branchid=p_branchid;
loop
fetch c_custids into v_custid;
exit when c_custids%notfound;
GetCustlongDays( v_custid,p_branchid);
end loop;
close c_custids;
END;