create table test ( id varchar2(9), constraint id_chk check(regexp_like(id,'CON[0-9]{5}')) );
alter table test add constraint id_chk(check(regexp_like(id,'CON[0-9]{5}'))
Comment