Created
December 28, 2016 08:24
-
-
Save edib/3cfafce473d2fad5443e27757e68183a to your computer and use it in GitHub Desktop.
simplest plpgsql function example
This file contains hidden or 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
| CREATE OR REPLACE FUNCTION fnsomefunc() | |
| RETURNS void AS | |
| $$ | |
| BEGIN | |
| FOR i IN 1 .. 100 LOOP | |
| RAISE NOTICE 'I am counting %',i; | |
| END LOOP; | |
| END; | |
| $$ | |
| LANGUAGE 'plpgsql' IMMUTABLE; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment