CREATE [OR REPLACE] FUNCTION function_name [ (parameter [,parameter]) ]
RETURN return_datatype
IS | AS
[declaration_section]
BEGIN executable_section
[EXCEPTION exception_section]
END [function_name];