有没有高手在,帮忙修改一下
来源:互联网 发布:warframe防火墙udp端口 编辑:程序博客网 时间:2024/04/30 23:57
这段程序,是个判断,总共有4种情况
当dctime=02,04,06,09,11时,to_number(dcNowMonth)-to_number(dcOldMonth)>100,则ntime:=1;
当dctime=05,07,08,10,12时,to_number(dcNowMonth)-to_number(dcOldMonth)>101,则ntime:=1;
当dctime=03时,to_number(dcNowMonth)-to_number(dcOldMonth)>103,则ntime:=1;
当dctime=01时,to_number(dcNowMonth)-to_number(dcOldMonth)>8900,则ntime:=1;
dcNowMonth:=to_char(sysdate,'yyyyMMdd');
dctime:=to_char(sysdate,'MM');
select dcmonth into dcOldMonth from month100 where rownum<2;
while (dctime=02) loop
if to_number(dcNowMonth)-to_number(dcOldMonth)>100
then
ntime:=1;
end if;
end loop;
while (dctime=04) loop
if to_number(dcNowMonth)-to_number(dcOldMonth)>100
then
ntime:=1;
end if;
end loop;
while (dctime=06) loop
if to_number(dcNowMonth)-to_number(dcOldMonth)>100
then
ntime:=1;
end if;
end loop;
while (dctime=09) loop
if to_number(dcNowMonth)-to_number(dcOldMonth)>100
then
ntime:=1;
end if;
end loop;
while (dctime=11) loop
if to_number(dcNowMonth)-to_number(dcOldMonth)>100
then
ntime:=1;
end if;
end loop;
while (dctime=03) loop
if to_number(dcNowMonth)-to_number(dcOldMonth)>103
then
ntime:=1;
end if;
end loop;
while (dctime=01) loop
if to_number(dcNowMonth)-to_number(dcOldMonth)>8900
then
ntime:=1;
end if;
end loop;
while (dctime=05) loop
if to_number(dcNowMonth)-to_number(dcOldMonth)>101
then
ntime:=1;
end if;
end loop;
while (dctime=07) loop
if to_number(dcNowMonth)-to_number(dcOldMonth)>101
then
ntime:=1;
end if;
end loop;
while (dctime=08) loop
if to_number(dcNowMonth)-to_number(dcOldMonth)>101
then
ntime:=1;
end if;
end loop;
while (dctime=10) loop
if to_number(dcNowMonth)-to_number(dcOldMonth)>101
then
ntime:=1;
end if;
end loop;
while (dctime=12) loop
if to_number(dcNowMonth)-to_number(dcOldMonth)>101
then
ntime:=1;
end if;
end loop;
小弟对数据库的存储过程不熟,哪位帮我修改一下。还有
dctime:=to_char(sysdate,'MM');
是不是取系统日期中的月数。
- 有没有高手在,帮忙修改一下
- 有没有大神来帮忙看一下
- 高手帮忙解决一下
- 有没有大神级存在啊, 帮忙搞定一下
- 帮忙看一下代码有没有内存问题?
- 有没有大神帮忙精简一下,欢迎私信。
- 有哪位高手帮忙解决一下问题!!!DataContract 的using引用指令用什么?
- 看到的帮忙修改一下
- 高手帮忙找一下 c语言语法错误
- 没有积分,无法提问,只有写在博客中,希望能有高手看到,帮忙解决
- 如何在特定的区域提问?请哪位高手帮忙指点一下,谢谢!
- 请高手们帮忙看一下为什么我这个asp的搜索功能搜索不了?请帮忙修改一下为谢!
- 有没有帮忙的呀??
- 关于GWBASIC程序编码修改问题有没有大神能帮忙?
- 有个问题大家帮忙看一下
- 数据结构 栈问题(在TC能运行,但是是死循环,请高手帮忙调试一下,谢谢~)
- C#程序集问题,请高手帮忙解决一下!!
- C 语言高手请帮忙讲解一下怎么调用函数
- 在C#程序中实现插件架构
- ASP.net常用对象之二(Response对象)
- nfs client不能同步nfs server的问题(已解决)
- ASP.net常用对象之三(Server对象)
- 移动 Windows 文件保护缓存文件夹
- 有没有高手在,帮忙修改一下
- BASIC四十年
- JDBC(1)SUN的JDBC教程学习体会
- Java学习笔记——Java 体系结构介绍
- fsasasdf
- http://zedware.org
- Hey! Are you doing?
- 杨小凯 - 经济发展中的后发优势和劣势
- (收藏)架构,构件,组件,框架,中间件之间有什么区别