database - Restricting a Char to Two Values in Oracle -
i'm creating table in pl/sql, want char
column allowed r
or d
. i've been looking around haven't found concrete answer online. maybe i'm not using right search term.
alter table tablename add constraint constraintname check (columnname in ('r', 'd'));
Comments
Post a Comment