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

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -