CREATE FUNCTION function_name(argument1 type,argument2 type) RETURNS type AS BEGIN staments; END; LANGUAGE 'language_name';