CREATE OR REPLACE FUNCTION function_name ([parameter(s)]) RETURN return_datatype AS [declaration] BEGIN [EXCEPTION] END [function_name];