Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Query

Author  Topic 

rajkumarapps
Starting Member

1 Post

Posted - 2006-11-08 : 14:18:36
Hello friends,

Could u Plz. solve the follwing problem.
SQL> create table abc1
2 ( dob date, constraint x_check1 check(dob <=d
3 TO_DATE(sysdate, 'DD-MON-YYYY' )));

TO_DATE(sysdate, 'DD-MON-YYYY' )))
*
ERROR at line 3:
ORA-02436: date or system variable wrongly specified in CHECK constraint

The date should accept only up to sysdate.

Thanks in advance
RAJKumar

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2006-11-08 : 14:51:25
I think SYSDATE in SQL Server is equal to GETDATE()


Peter Larsson
Helsingborg, Sweden
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2006-11-08 : 14:54:07
If the question is about ORACLE, post at proper site for ORACLE.


Peter Larsson
Helsingborg, Sweden
Go to Top of Page
   

- Advertisement -