Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

sql constraint to check date less than current date

ALTER TABLE yourTable
	ADD CONSTRAINT yourDateTimeColumn CHECK (yourDateTimeColumn < GetDate() );
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sql #constraint #check #date #current #date
ADD COMMENT
Topic
Name
1+4 =