oracle - add a check constraint for the column -


add check constraint column, insert values didn't have special characters except comma, space, full-stop , number in them?

for example allows like: group co.,ltd

should not allow ¿abc important

you can try below example-

alter table emp add ( constraint cc_name check (trim(translate(upper(ename),' abcdefghijklmnopqrstuvwxyz0123456789_,.',' ')) null)); 

Comments

Popular posts from this blog

javascript - Training Neural Network to play flappy bird with genetic algorithm - Why can't it learn? -

service - Android MediaPlayer calls onCompletion before it already finished -

javascript - Create a stacked percentage column -