Last active
December 8, 2023 15:19
-
-
Save zdravko-il/794a867c28a516d422af9e8ec951b31e 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 MASKING POLICY hash_mask AS (val string) RETURNS string -> SHA2(val); | |
ALTER TABLE customer MODIFY COLUMN name SET MASKING POLICY hash_mask, | |
ALTER TABLE customer MODIFY COLUMN email SET MASKING POLICY hash_mask; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment