Created
August 27, 2012 14:21
-
-
Save emoseman/3488867 to your computer and use it in GitHub Desktop.
postgresql create function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- DROP FUNCTION IF EXISTS function name; | |
CREATE FUNCTION function name ( | |
argument types | |
) | |
RETURNS return type | |
AS $$ | |
DECLARE | |
function scope variables | |
BEGIN | |
function contents | |
END; | |
$$ LANGUAGE 'plpgsql'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment