Last active
September 27, 2018 07:40
-
-
Save beginor/a12d6d6540ef0e7230984ac358e06c30 to your computer and use it in GitHub Desktop.
postgresql variables
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
DO $$ | |
DECLARE | |
counter INTEGER := 1; | |
first_name VARCHAR(50) := 'John'; | |
last_name VARCHAR(50) := 'Doe'; | |
payment NUMERIC(11, 2) := 20.5; | |
BEGIN | |
RAISE NOTICE '% % % has been paid % USD.', counter, first_name, last_name, payment; | |
END $$; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment