Got it.
Many thanks :-)
On Tuesday, 8 November 2016 21:51:54 UTC, Jeremy Evans wrote:
>
> On Tuesday, November 8, 2016 at 1:44:57 PM UTC-8, Ewan Slater wrote:
>>
>> 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.
>>
>>
> The schema modification guide covers CHECK constraints:
> http://sequel.jeremyevans.net/rdoc/files/doc/schema_modification_rdoc.html#label-check
>
> Thanks,
> Jeremy
>
--
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.