📜  oracle 函数 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:19.684000             🧑  作者: Mango

代码示例1
CREATE OR REPLACE FUNCTION to_date_check_null(dateString IN VARCHAR2, 
    dateFormat IN VARCHAR2) RETURN DATE IS
BEGIN 
    IF dateString IS NULL THEN
        return NULL;
    ELSE
        return to_date(dateString, dateFormat);
    END IF;
END;