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')); 

find out more


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -