How do I create a constraint that expects the string to start with a capital letter followed by lower case letters, e.g Peter
I know how to do full uppercase
NAME VARCHAR2 (12) CONSTRAINT NAME_chk CHECK name = UPPER (name)
How do I create a constraint that expects the string to start with a capital letter followed by lower case letters, e.g Peter
I know how to do full uppercase
NAME VARCHAR2 (12) CONSTRAINT NAME_chk CHECK name = UPPER (name)
The answer i've worked out is to use the Initcap function
So
FNAME VARCHAR2 (15) CONSTRAINT Name_ck CHECK (fname=initcap (fname))