sql - Creating a check constraint for multiple specific inputs -


i assumed fine execute sql ommand this

installation' or 'software repair'

this didn't work tried

this didn't go great either, got missing expression data recovery

this gave me cannot validate sys.ch_servicetype -check constraint violated

does mean constraint in place? if not

how can enforce check constraint table require specific values?

thanks

use in keyword.

servicetype in ('training', 'data_recovery', 'consultation', 'software  installation', 'software repair') 

Comments

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -