一:if translate(str,'\0123456789','\') is null then --为空则全是数字 --your code end if;
二:??select ascii(9) from dual;48到57为数字。
三:大小写还是等于自己的,那就是数字upper('1')=1
--判断是否为日期格式:
create or replace function F_CheckDate(param in varchar2) return number is
? colType date;
begin
? colType := to_date(param, 'yyyy-mm-dd hh24:mi:ss');
? DBMS_OUTPUT.put_line(colType);
? return 1;
exception
? when others then
??? return 0;
end F_CheckDate;