没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
![txt](https://img-home.csdnimg.cn/images/20210720083642.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![application/x-rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![application/x-rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![002](https://img-home.csdnimg.cn/images/20210720083646.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![text/plain](https://img-home.csdnimg.cn/images/20210720083646.png)
![application/pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![001](https://img-home.csdnimg.cn/images/20210720083646.png)
![doc](https://img-home.csdnimg.cn/images/20210720083327.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
create or replace function FN_ISDATE_JAVA(v_tjrq VARCHAR2 --日期
) return number --返回1为正确,0为错误。
as
/*------------------------------------------------------------------------
公用函数:日期检查函数
调用范例: select F_ISDATE_JAVA('20100101') from dual;
------------------------------------------------------------------------*/
i_year number; --年
i_month number; --月
i_day number; --日
d_tjrq date; --日期类型的日期
begin
if v_tjrq is null then
return 0;
end if;
if length(trim(v_tjrq)) <> 8 then
return 0;
end if;
if regexp_substr(trim(v_tjrq), '[[:digit:]]+') is null then
return 0;
end if;
if regexp_substr(trim(v_tjrq), '[[:digit:]]+') <> trim(v_tjrq) then
return 0;
end if;
i_year := to_number(substr(rtrim(v_tjrq), 1, 4));
) return number --返回1为正确,0为错误。
as
/*------------------------------------------------------------------------
公用函数:日期检查函数
调用范例: select F_ISDATE_JAVA('20100101') from dual;
------------------------------------------------------------------------*/
i_year number; --年
i_month number; --月
i_day number; --日
d_tjrq date; --日期类型的日期
begin
if v_tjrq is null then
return 0;
end if;
if length(trim(v_tjrq)) <> 8 then
return 0;
end if;
if regexp_substr(trim(v_tjrq), '[[:digit:]]+') is null then
return 0;
end if;
if regexp_substr(trim(v_tjrq), '[[:digit:]]+') <> trim(v_tjrq) then
return 0;
end if;
i_year := to_number(substr(rtrim(v_tjrq), 1, 4));
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
- 我要WhatYouNeed2023-07-27这个文件简单明了地解释了如何判断日期的有效性,对于新手来说非常友好。
- 萌新小白爱学习2023-07-27作者针对验证日期这一问题进行了深入的探讨,给出了实用而有效的解决方案。
- 武藏美-伊雯2023-07-27这个文件内容直截了当,真实可行,让我能够快速验证日期,省去了很多不必要的麻烦。
- 曹多鱼2023-07-27这个文件很有用,详细介绍了如何验证日期,让我受益匪浅。
- 白绍伟2023-07-27找了好久才找到这个文件,它提供了一种简单而可靠的方法来验证日期,确实帮了我很多忙。
![avatar](https://profile-avatar.csdnimg.cn/default.jpg!1)
moseslincgdz
- 粉丝: 0
- 资源: 2
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback-tip](https://img-home.csdnimg.cn/images/20220527035111.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)