English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

1 answers

Put a check constraint on the column similar to:

...
myCol varchar2(20)
constraint myCol_badvalue check (
translate(upper(myCol),
'_ABCDEFGHIJKLMNOPQRSTUVWXYZ','_') IS NULL )

The above will check that the value is A-Z (either case) and if not, return an oracle error because it failed the check.

2007-03-02 19:43:36 · answer #1 · answered by BigRez 6 · 0 0

fedest.com, questions and answers