Created
June 9, 2021 21:39
-
-
Save J2112O/dbc860db37ccf20c2acd15b0537e5e44 to your computer and use it in GitHub Desktop.
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
SELECT | |
RPAD(first_name, | |
CASE WHEN LENGTH(first_name) < :max_fname_len THEN :max_fname_len - LENGTH(first_name) + LENGTH(first_name) ELSE :max_fname_len END, '*') AS padded_fname | |
FROM friends; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment