Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

sql constraint check value in list

CREATE TABLE test(
    _id BIGINT PRIMARY KEY NOT NULL,
    decision NVARCHAR(5),
    CHECK (decision in ('yes','no','maybe'))
);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sql #constraint #check #list
ADD COMMENT
Topic
Name
6+2 =