Answers for "how to add check constraint while creating table 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

Code answers related to "how to add check constraint while creating table in sql"

Code answers related to "SQL"

Browse Popular Code Answers by Language