Quote:
Originally posted by LKBrwn_DBA
Try this (In Oracle):
alter table MyTable
add constraint chk_UPPER1
check(nvl(substr(AttributeName,1,1),'?') between 'A' and 'Z');
|
Thanks a bunch!
Since I'm creating the table can do this?
CREATE tableName
(AttributeName varchar(8) not null,
CONSTRAINT chk_upper1
check(nvl(substr(AttributeName,1,1),'?') between 'A' and 'Z')
)
P.S. I'm not sure if the nvl will work in oracle8 its sqlplus... Than I suppose that I can do it with decode...
Thanks again!