Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.tools -> Re: Enum types
In article <909653536.997788705779.JavaMail.usenet_at_eresmas.com>, buffy
<buffy_at_hotmail.com> writes:
>How can I implement enum types in Oracle?
>
You might want to use a check constraint.
create table TURTLE (
species VARCHAR2(20) CHECK (species IN
'Box', 'Snapping', 'Western Pond'));