Hi,

I want to create a table in an Oracle DB using Sequel, but adding a CHECK 
constraint.

Something like:
 

CREATE TABLE sizes (
  name VARCHAR2(10) CHECK( name IN ('small','medium','large') ));


I tried using column and passing in the string "VARCHAR2(10) CHECK( name IN 
('small','medium','large') ) " as argument for the column type, but that didn't 
work.


Any suggestions gratefully received.


Cheers,


Ewan

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to