CREATE OR REPLACE FUNCTION isdate(str varchar
RETURN NUMBER
IS
v_date date;
v_fmt varchar
v_nls varchar
BEGIN
IF fmt IS NULL THEN
SELECT value
INTO v_fmt
FROM v$nls_parameters
WHERE parameter=
END IF;
IF nls IS NULL THEN
SELECT
INTO v_nls
FROM v$nls_parameters
WHERE parameter=
END IF;
v_date := to_date(str
RETURN
EXCEPTION
WHEN OTHERS THEN
RETURN
END;
函數為自定義的 功能等同於sqlserver的isdate函數
注釋掉的信息為返回時間格式
From:http://tw.wingwit.com/Article/program/Oracle/201311/16628.html