自定义函数,是日期类型返回1,否则返回0.

create function fun_is_date(i_dt varchar2) return number is
v_dt date;
begin
v_dt := to_date(nvl(i_dt, 'a') , 'yyyy-mm-dd');
return 1;
exception
when others then
return 0;
end fun_is_date;

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-29
  • 2022-12-23
  • 2021-11-15
  • 2022-12-23
猜你喜欢
  • 2021-08-27
  • 2021-08-04
  • 2022-12-23
  • 2022-12-23
  • 2021-07-16
  • 2022-12-23
  • 2021-12-23
相关资源
相似解决方案