/**
功能:验证字符串是否是时间 返回结果: 1 :是 0:不是
作者:王聘群
时间:2012-06-04
**/
begin
declare v_date date;
begin
v_date := to_date(dateStr,format);
v_date := to_date(to_char(v_date,format),format);
return 1;
exception
when others then
return 0;
end;
end is_date;
转载于:https://my.oschina.net/wpq/blog/72033