Skip to content

Instantly share code, notes, and snippets.

@thu-IL
Created May 30, 2024 03:12
Show Gist options
  • Save thu-IL/7bdf8d58957bf2fff200baca3a3cd4dc to your computer and use it in GitHub Desktop.
Save thu-IL/7bdf8d58957bf2fff200baca3a3cd4dc to your computer and use it in GitHub Desktop.
Tag-Based Masking Policy: Apply Tag to Column
ALTER TABLE customer ALTER COLUMN email SET TAG pii_email='pii';
ALTER TABLE customer ALTER COLUMN phone SET TAG pii_phone='pii';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment