Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Check constraint question...
Hi,
you can't compare a string to a date, use the following: ALTER TABLE ACTIVITYTRACKING200205 ADD CONSTRAINT ACTIVITY200205 CHECK (ACTIVITYDATE BETWEEN to_date('01-MAY-02', 'DD-MON-YY') AND to_date('31-MAY-02', 'DD-MON-YY'));
Regards
Stephan
Received on Thu Apr 25 2002 - 07:18:20 CDT
![]() |
![]() |