Created
July 20, 2018 18:13
-
-
Save abrarShariar/cf3d1fbfd338e1a1cf940b332a2ab441 to your computer and use it in GitHub Desktop.
pl/pgsql sample code
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
DO $$ | |
DECLARE | |
rec RECORD; | |
BEGIN | |
FOR rec IN SELECT * FROM transaction_status WHERE transaction_id = 31 | |
LOOP | |
RAISE NOTICE '%', rec.status_msg; | |
END LOOP; | |
END; | |
$$ LANGUAGE plpgsql; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment