I would like to know what is the different between 'in' clause and 'like' clause oracle in check constraint.
here is sample code for 'in' clause
ALTER TABLE EXPREPORT
ADD CONSTRAINT EXPREPORT_CHK1 CHECK
(EXPREPSTATUS IN ('PENDING', 'APPROVED', 'DENIED'))
ENABLE;
here is sample code for 'like' clause
ALTER TABLE EXPENSEREPORT
ADD CONSTRAINT EXPENSEREPORT_CHK1 CHECK
(EXPREPSTATUS LIKE 'APPROVED' OR EXPREPSTATUS LIKE 'DENIED' OR EXPREPSTATUS LIKE 'PENDING')
ENABLE;
is there any difference between these two clause?