I have an application where a code like YYY/YY/YY or YYY.YY.YY is inserted before it was only with "."
So the previous developer add a constraint in the corresponding table that I drop in TEST environment but I want to add a new one
ALTER TABLE DEPLOYMENT_ADM.DEPLOYMENT
ADD CONSTRAINT deployment_chk_billing
CHECK ( BILLING_CODE LIKE '[0-9]{3}/[0-9]{2}/[0-9]{2}'
OR BILLING_CODE LIKE '[0-9]{3}\\.[0-9]{2}\\.[0-9]{2}');
But when I try it I have
ORA-02293: cannot validate (DEPLOYMENT_ADM.DEPLOYMENT_CHK_BILLING) - check constraint violated
So I don't see where is the error
LIKEdoes not support regular expressions in SQL