View previous topic :: View next topic |
Author |
Message |
jajularamesh Beginner
Joined: 14 Apr 2006 Posts: 87 Topics: 33
|
Posted: Tue Apr 18, 2006 6:44 am Post subject: Check constraint |
|
|
i want to validate a date field by putting check constaint(i,e the date entered should be greater than the current date).when i am doing like this the query is not getting executed.
datedd constraint con_datedd check(datedd <= Current date) |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Tue Apr 18, 2006 7:20 am Post subject: |
|
|
jajularamesh,
Check Constraints need to be a fixed value instead of a dynamic value. You cannot have current date which is a dynamic value as a check contraint. You can code an editproc on the column.
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
Cogito-Ergo-Sum Advanced
Joined: 15 Dec 2002 Posts: 637 Topics: 43 Location: Bengaluru, INDIA
|
Posted: Tue Apr 18, 2006 8:47 am Post subject: |
|
|
Quote: | You can code an editproc on the column | FIELDPROC, you meant, Kolusu ? _________________ ALL opinions are welcome.
Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes. |
|
Back to top |
|
 |
|
|