Attach a check constraint to a table to specify the data values that are acceptable in one or more columns.
state
column of the authors
table to New York, type: state = 'NY'
Or, to require entries in the zip
column to be 5 digits, type:
zip LIKE '[0-9][0-9][0-9][0-9][0-9]'
Note Make sure to enclose any non-numeric constraint values in single quotation marks (').