Check out example codes for "sql constraint check value in list". It will help you in understanding the concepts better.

Code Example 1

CREATE TABLE test(
    _id BIGINT PRIMARY KEY NOT NULL,
    decision NVARCHAR(5),
    CHECK (decision in ('yes','no','maybe'))
);

Code Example 2

ALTER TABLE <table>
ADD CONSTRAINT chk_val CHECK (col in ('yes','no','maybe'))

Learn ReactJs, React Native from akashmittal.com