sql - Oracle Database Can set Constraint for Upper Case Values? -
is there anyway can set constraint in database table level have upper or lower case values columns? when create table, can set not null avoid having null values on column. same way, can either uppercase or lower case?
you can using check constraint:
create table foo ( only_lower varchar(20) not null check (lower(only_lower) = only_lower), only_upper varchar(20) not null check (upper(only_upper) = only_upper) );
Comments
Post a Comment