Check out example codes for "sql create text column limited values". It will help you in understanding the concepts better.

Code Example 1

CREATE TABLE tablename (id INTEGER NOT NULL, some_text VARCHAR(255), CONSTRAINT check_some_text CHECK (some_text IN ('option_a', 'option_b', 'option_c')));

Learn ReactJs, React Native from akashmittal.com