Skip to content

Instantly share code, notes, and snippets.

@dimd13
Last active March 4, 2016 08:47
Show Gist options
  • Save dimd13/b9e8dfc9786dd34870e8 to your computer and use it in GitHub Desktop.
Save dimd13/b9e8dfc9786dd34870e8 to your computer and use it in GitHub Desktop.
PostgesSQL
CREATE DOMAIN phone_number_type AS VARCHAR(16) CHECK( VALUE ~ '^([\+])\d{11,15}$' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment