Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

sql server phone constraint

CONSTRAINT chk_phone CHECK (phone like '[0-9][0-9][0-9][0-9][0-9][0-9][0-9]') -- check that no number is not a digit 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sql #server #phone #constraint
ADD COMMENT
Topic
Name
7+6 =