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