Answers for "how to see the value of a check constraint in sql"

SQL
4

sql constraint check value in list

ALTER TABLE <table>
ADD CONSTRAINT chk_val CHECK (col in ('yes','no','maybe'))
Posted by: Guest on May-24-2020
1

sql constraint check value in list

CREATE TABLE test(
    _id BIGINT PRIMARY KEY NOT NULL,
    decision NVARCHAR(5),
    CHECK (decision in ('yes','no','maybe'))
);
Posted by: Guest on May-24-2020

Code answers related to "how to see the value of a check constraint in sql"

Code answers related to "SQL"

Browse Popular Code Answers by Language