Last active
December 11, 2020 17:02
-
-
Save mesmacosta/def91939e7192da6d8cd3068916ef5c4 to your computer and use it in GitHub Desktop.
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 FUNCTION credit_mask(input varchar(19)) RETURNS output VARCHAR(19) | |
| LANGUAGE SQLSCRIPT | |
| AS | |
| BEGIN | |
| output = LEFT(:input,4) || '-XXXX-XXXX-' || RIGHT(:input,4); | |
| END; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment